diff --git a/configure b/configure index 1aed039651..246a2d4695 100755 --- a/configure +++ b/configure @@ -19623,7 +19623,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 9e3f9d3d65..d974671e3d 100644 --- a/configure.in +++ b/configure.in @@ -3394,7 +3394,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