diff --git a/configure b/configure index d02675742d2..20d8095c252 100755 --- a/configure +++ b/configure @@ -9124,7 +9124,8 @@ then LDSHARED='$(CC) -shared' LDCXXSHARED='$(CXX) -shared' else - LDSHARED='ld -b' + LDSHARED='$(CC) -b' + LDCXXSHARED='$(CXX) -shared' fi ;; Darwin/1.3*) LDSHARED='$(CC) -bundle' diff --git a/configure.ac b/configure.ac index 68a95c3be6a..828dadb56c4 100644 --- a/configure.ac +++ b/configure.ac @@ -2442,7 +2442,8 @@ then LDSHARED='$(CC) -shared' LDCXXSHARED='$(CXX) -shared' else - LDSHARED='ld -b' + LDSHARED='$(CC) -b' + LDCXXSHARED='$(CXX) -b' fi ;; Darwin/1.3*) LDSHARED='$(CC) -bundle'