mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
nspr-native: fix ubuntu 18.04 builds using system gcc.
gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -lrt -o abstract ../../dist/lib/libnspr4.so: undefined reference to `dlopen' ../../dist/lib/libnspr4.so: undefined reference to `dlclose' ../../dist/lib/libnspr4.so: undefined reference to `dlerror' ../../dist/lib/libnspr4.so: undefined reference to `dlsym' ../../dist/lib/libnspr4.so: undefined reference to `dladdr' collect2: error: ld returned 1 exit status Pulling in -lrt, does not automatically pull in libdl. Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
654af6d6ec
commit
c47ab9a82c
@@ -160,7 +160,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
||||
# preferred path upstream.
|
||||
EXTRA_OECONF += "--includedir=${includedir}/nspr"
|
||||
|
||||
EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
|
||||
EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt -ldl'"
|
||||
|
||||
do_compile:prepend() {
|
||||
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
|
||||
|
||||
Reference in New Issue
Block a user