diff --git a/configure.in b/configure.in index 37bc7cd2a60b..6af7495d51a1 100644 --- a/configure.in +++ b/configure.in @@ -288,8 +288,8 @@ alpha*-*-osf*) *-netbsd*) DLL_SUFFIX="so.1.0" DSO_CFLAGS='-fPIC' - DSO_LDOPTS='-shared -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' - MKSHLIB='$(LD) $(DSO_LDOPTS)' + DSO_LDOPTS='-Wl,-shared -Wl,-h -Wl,$(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' + MKSHLIB='$(CXX) $(DSO_LDOPTS)' if test -z "`$CC -E - -dM