aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDan Nicolaescu2010-09-21 01:35:37 +0300
committerDan Nicolaescu2010-09-21 01:35:37 +0300
commitf5ea3ba7ccf9174cbb1c115cf185632cfe44f655 (patch)
tree8f1268550b6d437a785f7aea69ae0317a3bc0178 /configure
parent984edd2215e74d54d387c7e8fa2fd14ee43ff5f0 (diff)
downloademacs-f5ea3ba7ccf9174cbb1c115cf185632cfe44f655.tar.gz
emacs-f5ea3ba7ccf9174cbb1c115cf185632cfe44f655.zip
Link temacs using $(CC) not $(LD).
* configure.in (LINKER): Rename to LD_FIRSTFLAG, do not include $(CC). * src/Makefile.in (temacs): Link using $(CC) not $(LD). (LD_FIRSTFLAG): Define using autoconf. (LD): Remove.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 10 insertions, 11 deletions
diff --git a/configure b/configure
index f1ae71f73ac..d3df6233e5f 100755
--- a/configure
+++ b/configure
@@ -599,7 +599,7 @@ WINDOW_SUPPORT
599TOOLTIP_SUPPORT 599TOOLTIP_SUPPORT
600MOUSE_SUPPORT 600MOUSE_SUPPORT
601LIB_GCC 601LIB_GCC
602LINKER 602LD_FIRSTFLAG
603LD_SWITCH_SYSTEM_TEMACS 603LD_SWITCH_SYSTEM_TEMACS
604POST_ALLOC_OBJ 604POST_ALLOC_OBJ
605PRE_ALLOC_OBJ 605PRE_ALLOC_OBJ
@@ -14703,7 +14703,7 @@ fi
14703 14703
14704 14704
14705 14705
14706LINKER= 14706LD_FIRSTFLAG=
14707ORDINARY_LINK= 14707ORDINARY_LINK=
14708case "$opsys" in 14708case "$opsys" in
14709 ## gnu: GNU needs its own crt0. 14709 ## gnu: GNU needs its own crt0.
@@ -14713,14 +14713,14 @@ case "$opsys" in
14713 ## library search parth, i.e. it won't search /usr/lib for libc and 14713 ## library search parth, i.e. it won't search /usr/lib for libc and
14714 ## friends. Using -nostartfiles instead avoids this problem, and 14714 ## friends. Using -nostartfiles instead avoids this problem, and
14715 ## will also work on earlier NetBSD releases. 14715 ## will also work on earlier NetBSD releases.
14716 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;; 14716 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14717 14717
14718 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says 14718 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14719 ## MkLinux/LinuxPPC needs this. 14719 ## MkLinux/LinuxPPC needs this.
14720 ## ibms390x only supports opsys = gnu-linux so it can be added here. 14720 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14721 gnu-*) 14721 gnu-*)
14722 case "$machine" in 14722 case "$machine" in
14723 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;; 14723 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14724 esac 14724 esac
14725 ;; 14725 ;;
14726esac 14726esac
@@ -14728,14 +14728,14 @@ esac
14728 14728
14729if test "x$ORDINARY_LINK" = "xyes"; then 14729if test "x$ORDINARY_LINK" = "xyes"; then
14730 14730
14731 LINKER="\$(CC)" 14731 LD_FIRSTFLAG=""
14732 14732
14733$as_echo "#define ORDINARY_LINK 1" >>confdefs.h 14733$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14734 14734
14735 14735
14736## The system files defining neither ORDINARY_LINK nor LINKER are: 14736## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14737## freebsd, gnu-* not on macppc|ibms390x. 14737## freebsd, gnu-* not on macppc|ibms390x.
14738elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then 14738elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14739 14739
14740 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure 14740 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14741 ## places that are difficult to figure out at make time. Fortunately, 14741 ## places that are difficult to figure out at make time. Fortunately,
@@ -14745,18 +14745,17 @@ elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14745 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from 14745 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14746 ## searching for libraries in its internal directories, so we have to 14746 ## searching for libraries in its internal directories, so we have to
14747 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). 14747 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14748 LINKER="\$(CC) -nostdlib" 14748 LD_FIRSTFLAG="-nostdlib"
14749fi 14749fi
14750 14750
14751test "x$LINKER" = "x" && LINKER=ld
14752## FIXME? What setting of EDIT_LDFLAGS should this have? 14751## FIXME? What setting of EDIT_LDFLAGS should this have?
14753test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" 14752test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14754 14753
14755 14754
14756 14755
14757 14756
14758## FIXME? The logic here is not precisely the same as that above. 14757## FIXME? The logic here is not precisely the same as that above.
14759## There is no check here for a pre-defined LINKER. 14758## There is no check here for a pre-defined LD_FIRSTFLAG.
14760## Should we only be setting LIB_GCC if LD ~ -nostdlib? 14759## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14761LIB_GCC= 14760LIB_GCC=
14762if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then 14761if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then