[v9_9] work around libtool issue

- revert d3617e0d87
- use -Xcompiler option to libtool so it won't suppress -shared
- regenerate configure
This commit is contained in:
Evan Hunt 2012-11-20 03:40:07 +00:00
parent d3617e0d87
commit 7589a7b2e0
3 changed files with 11 additions and 6 deletions

View file

@ -48,11 +48,8 @@ dlopen@EXEEXT@: ${DLOPENOBJS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
-o $@ ${DLOPENOBJS} ${LIBS}
driver.@O@: driver.c
${PURIFY} ${CC} ${ALL_CFLAGS} -o driver.@O@ -c driver.c
driver.@SO@: ${SO_OBJS}
@SO_LD@ -o $@ driver.@O@
${LIBTOOL_MODE_LINK} @SO_LD@ -o $@ driver.@O@
clean distclean::
rm -f ${TARGETS}

6
configure vendored
View file

@ -19621,7 +19621,11 @@ if test "$dlopen" = "yes"; then
SO_CFLAGS="-fPIC"
if test "$have_dl" = "yes"
then
SO_LD="${CC} -shared"
if test "$use_libtool" = "yes"; then
SO_LD="${CC} -Xcompiler -shared"
else
SO_LD="${CC} -shared"
fi
else
SO_LD="ld -shared"
fi

View file

@ -3397,7 +3397,11 @@ if test "$dlopen" = "yes"; then
SO_CFLAGS="-fPIC"
if test "$have_dl" = "yes"
then
SO_LD="${CC} -shared"
if test "$use_libtool" = "yes"; then
SO_LD="${CC} -Xcompiler -shared"
else
SO_LD="${CC} -shared"
fi
else
SO_LD="ld -shared"
fi