summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/php/php.inc
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2018-09-27 14:55:19 +0200
committerKhem Raj <raj.khem@gmail.com>2018-09-27 08:58:18 -0700
commit797c1f11bb187efc7623c5c039dd78b59b710767 (patch)
tree912d9ed445870fbd755141e262a7540354045d44 /meta-oe/recipes-devtools/php/php.inc
parenteaf93e8c671c23d531d57cd3d559781c4e77ff72 (diff)
downloadmeta-openembedded-797c1f11bb187efc7623c5c039dd78b59b710767.tar.gz
php: fix linker errors by setting `ac_cv_func_dlopen=no`
The autoconf variable `ac_cv_func_dlopen` controls whether `dlopen()` is available without linking `libdl.so`. But that doesn't work: tmp-glibc/work/aarch64-oe-linux/php/7.2.10-r0/recipe-sysroot-native/usr/bin/aarch64-oe-linux/../../libexec/aarch64-oe-linux/gcc/aarch64-oe-linux/8.2.0/ld: ext/sqlite3/libsqlite/sqlite3.o: undefined reference to symbol 'dlsym@@GLIBC_2.17' tmp-glibc/work/aarch64-oe-linux/php/7.2.10-r0/recipe-sysroot-native/usr/bin/aarch64-oe-linux/../../libexec/aarch64-oe-linux/gcc/aarch64-oe-linux/8.2.0/ld: tmp-glibc/work/aarch64-oe-linux/php/7.2.10-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line Leave `ac_cv_lib_dl_dlopen=yes`, because that's the one which controls whether `-ldl` is needed. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r--meta-oe/recipes-devtools/php/php.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 99a25b94b..bfd0ddfb8 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -58,7 +58,7 @@ EXTRA_OECONF = "--enable-mbstring \
58 ${COMMON_EXTRA_OECONF} \ 58 ${COMMON_EXTRA_OECONF} \
59" 59"
60 60
61CACHED_CONFIGUREVARS += "ac_cv_func_dlopen=yes ac_cv_lib_dl_dlopen=yes" 61CACHED_CONFIGUREVARS += "ac_cv_func_dlopen=no ac_cv_lib_dl_dlopen=yes"
62 62
63EXTRA_OECONF_class-native = " \ 63EXTRA_OECONF_class-native = " \
64 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ 64 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \