Mercurial > emacs
comparison configure.in @ 108507:ea7b1bab920f
Move LIB_GCC from cpp to configure.
* configure.in (LIB_GCC): New output variable.
* src/Makefile.in (LIB_GCC): Set using configure, not cpp.
(GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
* src/m/arm.h (LIB_GCC) [GNU_LINUX]:
* src/s/cygwin.h (LIB_GCC):
* src/s/freebsd.h (LIB_GCC):
* src/s/gnu-linux.h (LIB_GCC):
* src/s/msdos.h (LIB_GCC):
* src/s/netbsd.h (LIB_GCC):
Move to configure.
* msdos/sed1v2.inp (LIB_GCC): Edit to -Lgcc.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 11 May 2010 20:01:16 -0700 |
parents | b246058e9b05 |
children | fa057912367f |
comparison
equal
deleted
inserted
replaced
108506:6fcaca6266ae | 108507:ea7b1bab920f |
---|---|
3232 LD_SWITCH_SYSTEM_EXTRA= | 3232 LD_SWITCH_SYSTEM_EXTRA= |
3233 fi | 3233 fi |
3234 AC_SUBST(LD_SWITCH_SYSTEM_EXTRA) | 3234 AC_SUBST(LD_SWITCH_SYSTEM_EXTRA) |
3235 | 3235 |
3236 | 3236 |
3237 LIB_GCC= | |
3238 if test "x$GCC" = "xyes"; then | |
3239 | |
3240 case "$opsys" in | |
3241 ## cygwin: don't link against static libgcc. | |
3242 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;; | |
3243 | |
3244 gnu-*) | |
3245 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to | |
3246 ## build on ARM EABI under GNU/Linux. (Bug#5518) | |
3247 ## Note that m/arm.h never bothered to undefine LIB_GCC first. | |
3248 if test "$machine" = "arm"; then | |
3249 LIB_GCC="-lgcc_s" | |
3250 else | |
3251 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then | |
3252 ## immediately undefine it again and redefine it to empty. | |
3253 ## Was the C_SWITCH_X_SITE part really necessary? | |
3254 ## LIB_GCC=`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` | |
3255 LIB_GCC= | |
3256 fi | |
3257 ;; | |
3258 | |
3259 ## Ask GCC where to find libgcc.a. | |
3260 *) LIB_GCC=`$(CC) -print-libgcc-file-name 2> /dev/null` ;; | |
3261 esac | |
3262 fi dnl if $GCC | |
3263 AC_SUBST(LIB_GCC) | |
3264 | |
3265 | |
3237 AH_TOP([/* GNU Emacs site configuration template file. | 3266 AH_TOP([/* GNU Emacs site configuration template file. |
3238 Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, | 3267 Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, |
3239 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3268 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
3240 | 3269 |
3241 This file is part of GNU Emacs. | 3270 This file is part of GNU Emacs. |