]> code.ossystems Code Review - openembedded-core.git/commitdiff
rpm: don't put LDFLAGS into the .pc file
authorRoss Burton <ross.burton@intel.com>
Thu, 22 Jan 2015 17:31:45 +0000 (17:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Mar 2015 16:00:20 +0000 (16:00 +0000)
The LDFLAGS are not generally useful with pkg-config and mean that the .pc file
contains references to the sysroot directory, so remove it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/rpm/rpm/no-ldflags-in-pkgconfig.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.14.bb

diff --git a/meta/recipes-devtools/rpm/rpm/no-ldflags-in-pkgconfig.patch b/meta/recipes-devtools/rpm/rpm/no-ldflags-in-pkgconfig.patch
new file mode 100644 (file)
index 0000000..410623f
--- /dev/null
@@ -0,0 +1,14 @@
+Don't put LDFLAGS into the Libs.private, all it generally contains is a linker
+hash selection (harmless) and the absolute path to the libdir in the sysroot
+(actively harmful).
+
+Upstream-Status: Pending
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+diff --git a/scripts/rpm.pc.in b/scripts/rpm.pc.in
+index 8293471..2ea469c 100644
+--- a/scripts/rpm.pc.in
++++ b/scripts/rpm.pc.in
+@@ -17 +17 @@ Libs: -L${libdir} -lrpmbuild${suffix} -lrpm${suffix} -lrpmdb${suffix} -lrpmio${s
+-Libs.private: @LDFLAGS@ @LIBS@
++Libs.private: @LIBS@
index d99a3002854eac440904fc380188b29d37f1ac8e..03a24f08befefdea9ce083dcd7ddb111c31777cb 100644 (file)
@@ -95,6 +95,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e
           file://rpmqv_cc_b_gone.patch \
           file://rpm-realpath.patch \
           file://0001-using-poptParseArgvString-to-parse-the-_gpg_check_pa.patch \
+          file://no-ldflags-in-pkgconfig.patch \
          "
 
 # Uncomment the following line to enable platform score debugging