ChangeLog addition:
2005-03-22 Vin Shelton <acs(a)xemacs.org>
* configure.ac: Allow gcc-3.4 and above (those which don't support
-fno-gnu-linker) to build a non-pdumped XEmacs on Solaris 2.5.1.
21.5 source patch:
Diff command: cvs -q diff -u
Files affected: configure.ac
Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.4
diff -a -u -u -r1.4 configure.ac
--- configure.ac 2005/03/15 12:37:14 1.4
+++ configure.ac 2005/03/23 01:19:44
@@ -2302,8 +2302,14 @@
*86* ) dynodump_arch=i386 ;;
powerpc ) dynodump_arch=ppc ;;
esac
- dnl Dynodump requires the system linker
- test "$GCC" = "yes" && XE_APPEND(-fno-gnu-linker,
ld_switch_site)
+ dnl Dynodump requires the system linker...
+ if test "$GCC" = "yes"; then
+ dnl but -fno-gnu-linker is only supported in gcc 3.3 and earlier
+ case "$GCC_VERSION" in
+ 2* ) XE_APPEND(-fno-gnu-linker, ld_switch_site) ;;
+ *3.0* | *3.1* | *3.2* | *3.3* ) XE_APPEND(-fno-gnu-linker, ld_switch_site) ;;
+ esac
+ fi
fi
dnl Feed s&m crud to src/Makefile