[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
revised -znocombreloc configure.in patch
From: |
Dave Love |
Subject: |
revised -znocombreloc configure.in patch |
Date: |
Fri, 19 Mar 2004 12:07:17 +0000 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
The patch I sent yesterday wasn't so good for gcc without GNU ld, per
the comment.
Index: configure.in
===================================================================
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.363
diff -u -p -u -r1.363 configure.in
--- configure.in 27 Jan 2004 16:46:34 -0000 1.363
+++ configure.in 19 Mar 2004 11:56:08 -0000
@@ -1273,6 +1277,24 @@ then
ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
fi
+dnl We need -znocombreloc if we're using a relatively recent GNU ld.
+dnl If we can link with the flag, it shouldn't do any harm anyhow.
+dnl (Don't use `-z nocombreloc' as -z has no arg on Irix.) Treat GCC
+dnl specially since it just gives a non-fatal `unrecognized option' if
+dnl not built to support GNU ld.
+late_LDFLAGS=$LDFLAGS
+if test $GCC = yes; then
+ LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
+else
+ LDFLAGS="$LDFLAGS -znocombreloc"
+fi
+
+AC_MSG_CHECKING([For -znocombreloc])
+AC_LINK_IFELSE([main(){return 0;}],
+ [AC_MSG_RESULT(yes)],
+ LDFLAGS=$late_LDFLAGS
+ [AC_MSG_RESULT(no)])
+
dnl checks for Unix variants
AC_AIX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- revised -znocombreloc configure.in patch,
Dave Love <=