distutils-common-base.bbclass: Prepend STAGING_LIBDIR to linker library search path.
authorKhem Raj <raj.khem@gmail.com>
Tue, 12 Oct 2010 15:58:34 +0000 (15:58 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 13 Oct 2010 11:46:58 +0000 (13:46 +0200)
* This was done generically in bitbake.conf this should be done on
  demand and distutils based recipes seem to need it. So we define it
  here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
Signed-off-by: Koen Kooi <koen@openembedded.org>
classes/distutils-common-base.bbclass

index f66a5cd..b6caf24 100644 (file)
@@ -4,6 +4,8 @@ EXTRA_OEMAKE = ""
 
 export STAGING_INCDIR
 export STAGING_LIBDIR
+# libtool 2.4 does not export with LDFLAGS but distutils need it
+LDFLAGS_prepend = "-L${STAGING_LIBDIR} "
 
 PACKAGES = "${PN}-dev ${PN}-dbg ${PN}-doc ${PN}"