[OE-core] [PATCH 8/8] python: obey LDFLAGS

Christopher Larson kergoth at gmail.com
Wed Sep 3 17:27:47 UTC 2014


From: Christopher Larson <chris_larson at mentor.com>

There was a remnant line which altered the LDFLAGS in Makefile to add
-L${STAGING_LIBDIR}. This isn't necessary with the --sysroot= bits, and it was
blowing away the correct LDFLAGS picked up by ./configure.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
 meta/recipes-devtools/python/python_2.7.3.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb
index 58bcced..109b733 100644
--- a/meta/recipes-devtools/python/python_2.7.3.bb
+++ b/meta/recipes-devtools/python/python_2.7.3.bb
@@ -75,8 +75,7 @@ do_compile() {
 	if [ ! -f Makefile.orig ]; then
 		install -m 0644 Makefile Makefile.orig
 	fi
-	sed -i -e 's,^LDFLAGS=.*,LDFLAGS=-L. -L${STAGING_LIBDIR},g' \
-		-e 's,libdir=${libdir},libdir=${STAGING_LIBDIR},g' \
+	sed -i  -e 's,libdir=${libdir},libdir=${STAGING_LIBDIR},g' \
 		-e 's,libexecdir=${libexecdir},libexecdir=${STAGING_DIR_HOST}${libexecdir},g' \
 		-e 's,^LIBDIR=.*,LIBDIR=${STAGING_LIBDIR},g' \
 		-e 's,includedir=${includedir},includedir=${STAGING_INCDIR},g' \
-- 
1.8.3.4




More information about the Openembedded-core mailing list