diff options
| author | Glenn Morris | 2013-09-09 00:34:15 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-09 00:34:15 -0700 |
| commit | 8d17ef8d542e37d3f2972c80ac448a990cbdd040 (patch) | |
| tree | 594a415444de86679a8c6c6fcce61625c9e295a4 | |
| parent | 66f3731f432de341b61be1083415711d3d124a1a (diff) | |
| download | emacs-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-- | ChangeLog | 11 | ||||
| -rw-r--r-- | configure.ac | 11 |
2 files changed, 19 insertions, 3 deletions
| @@ -1,3 +1,14 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-09-08 Glenn Morris <rgm@gnu.org> | 12 | 2013-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 | ||
| 1029 | late_LDFLAGS=$LDFLAGS | 1029 | late_LDFLAGS=$LDFLAGS |
| 1030 | if test x$GCC = xyes; then | 1030 | if test x$GCC = xyes; then |
| 1031 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | 1031 | LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc" |
| 1032 | else | 1032 | else |
| 1033 | LDFLAGS="$LDFLAGS -znocombreloc" | 1033 | LDFLAGS_NOCOMBRELOC="-znocombreloc" |
| 1034 | fi | 1034 | fi |
| 1035 | 1035 | ||
| 1036 | LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC" | ||
| 1037 | |||
| 1036 | AC_MSG_CHECKING([for -znocombreloc]) | 1038 | AC_MSG_CHECKING([for -znocombreloc]) |
| 1037 | AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], | 1039 | AC_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 | ||
| 1044 | LDFLAGS=$late_LDFLAGS | ||
| 1042 | 1045 | ||
| 1043 | dnl The function dump-emacs will not be defined and temacs will do | 1046 | dnl The function dump-emacs will not be defined and temacs will do |
| 1044 | dnl (load "loadup") automatically unless told otherwise. | 1047 | dnl (load "loadup") automatically unless told otherwise. |
| @@ -4740,6 +4743,8 @@ if test x$ac_enable_profiling != x ; then | |||
| 4740 | esac | 4743 | esac |
| 4741 | fi | 4744 | fi |
| 4742 | 4745 | ||
| 4746 | LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS" | ||
| 4747 | |||
| 4743 | AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) | 4748 | AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) |
| 4744 | 4749 | ||
| 4745 | ## MinGW-specific post-link processing of temacs. | 4750 | ## MinGW-specific post-link processing of temacs. |