diff options
author | Glenn Morris <rgm@gnu.org> | 2010-05-11 20:01:16 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2010-05-11 20:01:16 -0700 |
commit | 1a0d7c068814999743320e623bff7d0e75f94851 (patch) | |
tree | 9876d3487046e2e0e19517812f097d52ffae6779 /src | |
parent | 6a321bbcdd828bc72c785df161cfd88260601b6a (diff) | |
download | emacs-1a0d7c068814999743320e623bff7d0e75f94851.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 12 | ||||
-rw-r--r-- | src/Makefile.in | 16 | ||||
-rw-r--r-- | src/m/arm.h | 6 | ||||
-rw-r--r-- | src/s/cygwin.h | 3 | ||||
-rw-r--r-- | src/s/freebsd.h | 3 | ||||
-rw-r--r-- | src/s/gnu-linux.h | 6 | ||||
-rw-r--r-- | src/s/msdos.h | 1 | ||||
-rw-r--r-- | src/s/netbsd.h | 3 |
8 files changed, 17 insertions, 33 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 35b5153649a..7bf067e2427 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,15 @@ +2010-05-12 Glenn Morris <rgm@gnu.org> + + * Makefile.in (LIB_GCC): Set using configure, not cpp. + (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC. + * m/arm.h (LIB_GCC) [GNU_LINUX]: + * s/cygwin.h (LIB_GCC): + * s/freebsd.h (LIB_GCC): + * s/gnu-linux.h (LIB_GCC): + * s/msdos.h (LIB_GCC): + * s/netbsd.h (LIB_GCC): + Move to configure. + 2010-05-11 Karel Klic <kklic@redhat.com> * ftfont.c: Fix incorrect parentheses of #if condition for diff --git a/src/Makefile.in b/src/Makefile.in index 292429fc7b4..9476254e48d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -91,6 +91,9 @@ TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTE ## Some systems define this to request special libraries. LIBS_SYSTEM=@LIBS_SYSTEM@ +## Where to find libgcc.a, if using gcc and necessary. +LIB_GCC=@LIB_GCC@ + LIBTIFF=@LIBTIFF@ LIBJPEG=@LIBJPEG@ LIBPNG=@LIBPNG@ @@ -258,6 +261,8 @@ LIBX_OTHER=@LIBX_OTHER@ #endif /* not HAVE_X_WINDOWS */ #ifndef ORDINARY_LINK +GNULIB_VAR = $(LIB_GCC) + /* Fix linking if compiled with GCC. */ #ifdef __GNUC__ @@ -278,13 +283,6 @@ LIBX_OTHER=@LIBX_OTHER@ #define LINKER $(CC) -nostdlib #endif -#ifndef LIB_GCC -/* Ask GCC where to find libgcc.a. */ -#define LIB_GCC `$(CC) -print-libgcc-file-name` -#endif /* not LIB_GCC */ - -GNULIB_VAR = LIB_GCC - #ifndef LINKER_WAS_SPECIFIED /* GCC passes any argument prefixed with -Xlinker directly to the linker. See prefix-args.c for an explanation of why we do not do @@ -296,10 +294,6 @@ GNULIB_VAR = LIB_GCC #define YMF_PASS_LDFLAGS(flags) flags #endif -#else /* not __GNUC__ */ -GNULIB_VAR = - -#endif /* not __GNUC__ */ #endif /* not ORDINARY_LINK */ #ifdef ORDINARY_LINK diff --git a/src/m/arm.h b/src/m/arm.h index c3a5d6e4ad5..cf30e2e1b19 100644 --- a/src/m/arm.h +++ b/src/m/arm.h @@ -24,11 +24,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define NO_REMAP -/* armin76@gentoo.org reported that the lgcc_s flag is necessary to - build on ARM EABI under GNU/Linux (Bug#5518). */ -#ifdef GNU_LINUX -#define LIB_GCC -lgcc_s -#endif - /* arch-tag: 07856f0c-f0c8-4bd8-99af-0b7fa1e5ee42 (do not change this comment) */ diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 296b1970a97..4a5add787f4 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h @@ -127,9 +127,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ #define G_SLICE_ALWAYS_MALLOC -/* Don't link against static libgcc */ -#define LIB_GCC - /* the end */ /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 78c7dfdf6bb..2bce3ad63be 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h @@ -30,9 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) -#undef LIB_GCC -#define LIB_GCC - #define HAVE_GETLOADAVG 1 #define DECLARE_GETPWUID_WITH_UID_T diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 5c94a4369ce..a42bbaadf62 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -140,9 +140,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #endif /* !_IO_STDIO_H && ! __UCLIBC__ */ #endif /* emacs */ -/* Ask GCC where to find libgcc.a. */ -#define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` - #ifdef emacs #define INTERRUPT_INPUT #endif @@ -151,9 +148,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define POSIX /* affects getpagesize.h and systty.h */ -#undef LIB_GCC -#define LIB_GCC - #define UNEXEC unexelf.o /* This is to work around mysterious gcc failures in some system versions. diff --git a/src/s/msdos.h b/src/s/msdos.h index 4d7ca08d3c0..efed104e958 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h @@ -95,7 +95,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ #define ORDINARY_LINK /* command.com does not understand `...` so we define this. */ -#define LIB_GCC -Lgcc #define SEPCHAR ';' #define NULL_DEVICE "nul" diff --git a/src/s/netbsd.h b/src/s/netbsd.h index fa6d1141c8c..2511dc1c1e7 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -26,9 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) -#undef LIB_GCC -#define LIB_GCC - #define AMPERSAND_FULL_NAME /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears |