New DETECT_GNU_LD procedure.
authorAndy Polyakov <appro@openssl.org>
Sat, 14 Dec 2002 20:52:19 +0000 (20:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 14 Dec 2002 20:52:19 +0000 (20:52 +0000)
Makefile.shared

index dd7bf8d..d01edfd 100644 (file)
@@ -108,10 +108,8 @@ LINK_SO_A_UNPACKED=        \
   SHOBJECTS=$$UNPACKDIR/*.o; \
   $(LINK_SO) && rm -rf $$UNPACKDIR
 
-DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \
-       my_ld=`${CC} -print-prog-name=ld 2>&1` && \
-       [ -n "$$my_ld" ] && \
-       $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1
+DETECT_GNU_LD=(${CC} -Wl,-V /dev/null 2>&1 | grep '^GNU ld' )>/dev/null
+
 DO_GNU=$(CALC_VERSIONS); \
        SHLIB=lib$(LIBNAME).so \
        SHLIB_SUFFIX= \