diff options
author | Jeremy A. Puhlman <jpuhlman@mvista.com> | 2022-03-10 13:46:28 -0500 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-11 08:00:40 -0800 |
commit | c47ab9a82c4b0a274a91bf4afd8e5bae9d6fa767 (patch) | |
tree | 6b808e7d159c4ac0f26ba421bae776d70a222243 | |
parent | 654af6d6ecf49c6641de090950043563071aedda (diff) | |
download | meta-openembedded-c47ab9a82c4b0a274a91bf4afd8e5bae9d6fa767.tar.gz |
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>
-rw-r--r-- | meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb index 2717f37bcf..b60de08d2a 100644 --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb | |||
@@ -160,7 +160,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | |||
160 | # preferred path upstream. | 160 | # preferred path upstream. |
161 | EXTRA_OECONF += "--includedir=${includedir}/nspr" | 161 | EXTRA_OECONF += "--includedir=${includedir}/nspr" |
162 | 162 | ||
163 | EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'" | 163 | EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt -ldl'" |
164 | 164 | ||
165 | do_compile:prepend() { | 165 | do_compile:prepend() { |
166 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export | 166 | oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export |