diff --git a/bin/tests/system/dlzexternal/Makefile.in b/bin/tests/system/dlzexternal/Makefile.in index 69cbffb184..11b2d0acd7 100644 --- a/bin/tests/system/dlzexternal/Makefile.in +++ b/bin/tests/system/dlzexternal/Makefile.in @@ -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} diff --git a/configure b/configure index 2469431ed3..a297b3089c 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.in b/configure.in index 02e5ddec01..2926f55250 100644 --- a/configure.in +++ b/configure.in @@ -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