aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-09-09 00:34:15 -0700
committerGlenn Morris2013-09-09 00:34:15 -0700
commit8d17ef8d542e37d3f2972c80ac448a990cbdd040 (patch)
tree594a415444de86679a8c6c6fcce61625c9e295a4
parent66f3731f432de341b61be1083415711d3d124a1a (diff)
downloademacs-8d17ef8d542e37d3f2972c80ac448a990cbdd040.tar.gz
emacs-8d17ef8d542e37d3f2972c80ac448a990cbdd040.zip
Fix treatment of ld's nocombreloc option
* configure.ac (LDFLAGS_NOCOMBRELOC): New variable. (LDFLAGS): Move nocombreloc option from here... (LD_SWITCH_SYSTEM_TEMACS): ... to here. This is an essential option that should not be in LDFLAGS, because the user may override that at build time; eg http://bugs.debian.org/684788. temacs is the only thing that actually needs this option; this is where it was orginally: http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-03/msg00170.html
-rw-r--r--ChangeLog11
-rw-r--r--configure.ac11
2 files changed, 19 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 03a04c6367c..2100041e9fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
12013-09-09 Glenn Morris <rgm@gnu.org>
2
3 * configure.ac (LDFLAGS_NOCOMBRELOC): New variable.
4 (LDFLAGS): Move nocombreloc option from here...
5 (LD_SWITCH_SYSTEM_TEMACS): ... to here.
6 This is an essential option that should not be in LDFLAGS,
7 because the user may override that at build time; eg
8 http://bugs.debian.org/684788. temacs is the only thing
9 that actually needs this option; this is where it was orginally:
10 http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-03/msg00170.html
11
12013-09-08 Glenn Morris <rgm@gnu.org> 122013-09-08 Glenn Morris <rgm@gnu.org>
2 13
3 * configure.ac (--without-compress-install): 14 * configure.ac (--without-compress-install):
diff --git a/configure.ac b/configure.ac
index 2e90f5fb7b5..b18eeb90de1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1028,17 +1028,20 @@ dnl if not built to support GNU ld.
1028 1028
1029late_LDFLAGS=$LDFLAGS 1029late_LDFLAGS=$LDFLAGS
1030if test x$GCC = xyes; then 1030if test x$GCC = xyes; then
1031 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" 1031 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
1032else 1032else
1033 LDFLAGS="$LDFLAGS -znocombreloc" 1033 LDFLAGS_NOCOMBRELOC="-znocombreloc"
1034fi 1034fi
1035 1035
1036LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
1037
1036AC_MSG_CHECKING([for -znocombreloc]) 1038AC_MSG_CHECKING([for -znocombreloc])
1037AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], 1039AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
1038 [AC_MSG_RESULT(yes)], 1040 [AC_MSG_RESULT(yes)],
1039 LDFLAGS=$late_LDFLAGS 1041 LDFLAGS_NOCOMBRELOC=
1040 [AC_MSG_RESULT(no)]) 1042 [AC_MSG_RESULT(no)])
1041 1043
1044LDFLAGS=$late_LDFLAGS
1042 1045
1043dnl The function dump-emacs will not be defined and temacs will do 1046dnl The function dump-emacs will not be defined and temacs will do
1044dnl (load "loadup") automatically unless told otherwise. 1047dnl (load "loadup") automatically unless told otherwise.
@@ -4740,6 +4743,8 @@ if test x$ac_enable_profiling != x ; then
4740 esac 4743 esac
4741fi 4744fi
4742 4745
4746LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
4747
4743AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) 4748AC_SUBST(LD_SWITCH_SYSTEM_TEMACS)
4744 4749
4745## MinGW-specific post-link processing of temacs. 4750## MinGW-specific post-link processing of temacs.