configure error on solaris using gcc without gnu ld
Submitted by Steve Evans
Link to original bug (#343383)
Description
Please describe the problem: The configure process produces this error:
checking for dlsym in -ldl... yes
ld: fatal: entry point symbol `xport-dynamic' is undefined
collect2: ld returned 1 exit status
distcc[7089] ERROR: compile plugin.c on localhost failed
checking for RTLD_GLOBAL brokenness... no
Steps to reproduce:
- Run configure on Solaris when using gcc without GNU ld
Does this happen every time?
Yes
Other information:
The problem appears to caused by this code in the configure script:
if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
LIBS_orig="$LIBS"
LDFLAGS_orig="$LDFLAGS"
LIBS="$G_MODULE_LIBS $LIBS"
LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
echo "void glib_plugin_test(void) { }" > plugin.c
${SHELL} ./libtool --mode=compile ${CC} -shared \
-export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null
echo "$as_me:$LINENO: checking for RTLD_GLOBAL brokenness" >&5
which has a use of -export-dynamic
without checking the value of $with_gnu_ld
unlike all of the other uses of this switch in the script.
Version: 2.10.x