r25993: build: HOSTLD should always match HOSTCC if not specified
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Nov 2007 09:39:52 +0000 (10:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:31 +0000 (05:45 +0100)
metze
(This used to be commit 941dfdbbb47d18c94bff8bd0452326e6f5ce768f)

source4/build/m4/check_ld.m4

index c53cf5465b1065c4ad4298316322ded56f5d8260..ddda7e193b4ad0373400c9561905cc0fb597a26c 100644 (file)
@@ -29,13 +29,7 @@ PICFLAG=""
 # allow for --with-hostld=gcc
 AC_ARG_WITH(hostld,[  --with-hostld=linker    choose host linker],
 [HOSTLD=$withval],
-[
-if test z"$cross_compiling" = "yes"; then
-       HOSTLD='$(HOSTCC)'
-else
-       HOSTLD='$(LD)'
-fi
-])
+[HOSTLD=$HOSTCC])
 
 AC_MSG_CHECKING([whether to try to build shared libraries on $host_os])