From e19b55e9101b77146a9b71d3299097f6b23b0ea6 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 27 Sep 2023 17:04:45 +0200 Subject: ["CC/pkgconfig", "system_library"] Add -rpath When a shared library is picked up from the host system via pkg-config that is located at a non-standard location, binaries linked against this library by a standard linker either need LD_LIBRARY_PATH set appropriately, or -rpath set at link time. However, not all custom installations set -rpath in the link flags in their pkg-config file. Therefore, in order to get working binaries (and not have to set custom paths in tests), add a -rpath for every -L option found in the ldflags provided by pkg-config. --- CC/pkgconfig/TARGETS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CC/pkgconfig/TARGETS (limited to 'CC/pkgconfig/TARGETS') diff --git a/CC/pkgconfig/TARGETS b/CC/pkgconfig/TARGETS new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/CC/pkgconfig/TARGETS @@ -0,0 +1 @@ +{} -- cgit v1.2.3