aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-11-14 12:20:17 -0800
committerPaul Eggert2014-11-14 12:25:11 -0800
commit5caf6c9358068f9fca8ebde3230a2df1155c0d0c (patch)
tree7eb19fd74855401edcf9b2270732c6d517e01ef3
parent9bcde6cdcaa0494aaac20ff23101577aa80de5b0 (diff)
downloademacs-5caf6c9358068f9fca8ebde3230a2df1155c0d0c.tar.gz
emacs-5caf6c9358068f9fca8ebde3230a2df1155c0d0c.zip
build: port to GCC 4.6.4 + glibc 2.5
On platforms this old, building with _FORTIFY_SOURCE equal to 2 results in duplicate definitions of standard library functions. Problem reported by Nelson H. F. Beebe. * configure.ac (_FORTIFY_SOURCE): Sort after GNULIB_PORTCHECK. By default, do not enable this unless GNULIB_PORTCHECK is defined. This better matches the original intent, which as I recall was to enable these extra checks only with --enable-gcc-warnings.
-rw-r--r--ChangeLog11
-rw-r--r--configure.ac7
2 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 92c39959689..0e9dc0d5c69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
12014-11-14 Paul Eggert <eggert@cs.ucla.edu>
2
3 build: port to GCC 4.6.4 + glibc 2.5
4 On platforms this old, building with _FORTIFY_SOURCE equal to 2
5 results in duplicate definitions of standard library functions.
6 Problem reported by Nelson H. F. Beebe.
7 * configure.ac (_FORTIFY_SOURCE): Sort after GNULIB_PORTCHECK.
8 By default, do not enable this unless GNULIB_PORTCHECK is defined.
9 This better matches the original intent, which as I recall was to
10 enable these extra checks only with --enable-gcc-warnings.
11
12014-11-14 David Reitter <david.reitter@gmail.com> 122014-11-14 David Reitter <david.reitter@gmail.com>
2 13
3 * Makefile.in (install-arch-indep): Compress publicsuffix.txt file. 14 * Makefile.in (install-arch-indep): Compress publicsuffix.txt file.
diff --git a/configure.ac b/configure.ac
index b2b98a0936b..5d71c2f6a6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -899,14 +899,15 @@ else
899 fi 899 fi
900 900
901 AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.]) 901 AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
902 AH_VERBATIM([FORTIFY_SOURCE], 902 AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
903 AH_VERBATIM([GNULIB_PORTCHECK_FORTIFY_SOURCE],
903 [/* Enable compile-time and run-time bounds-checking, and some warnings, 904 [/* Enable compile-time and run-time bounds-checking, and some warnings,
904 without upsetting glibc 2.15+. */ 905 without upsetting glibc 2.15+. */
905 #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__ 906 #if (defined GNULIB_PORTCHECK && !defined _FORTIFY_SOURCE \
907 && defined __OPTIMIZE__ && __OPTIMIZE__)
906 # define _FORTIFY_SOURCE 2 908 # define _FORTIFY_SOURCE 2
907 #endif 909 #endif
908 ]) 910 ])
909 AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
910 911
911 # We use a slightly smaller set of warning options for lib/. 912 # We use a slightly smaller set of warning options for lib/.
912 # Remove the following and save the result in GNULIB_WARN_CFLAGS. 913 # Remove the following and save the result in GNULIB_WARN_CFLAGS.