I guess I hadn't tried to build with gcc under Solaris 2.5 (sparc) in
quite some time. Since gcc version 3.4, the -fno-gnu-linker argument
is no longer supported and configure bombs out as a result. This
patch works for me, (I've tested it against both gcc 2.95.3 and gcc
3.4.3 on Solaris 2.5.1) and I will commit it in a few days assuming no
one objects. I will submit a patch for 21.5 in a separate email.
Regards,
Vin
ChangeLog addition:
2005-03-22 Vin Shelton <acs(a)xemacs.org>
* configure.in (XE_PROTECT_LINKER_FLAGS): 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.4 source patch:
Diff command: cvs -q diff -u
Files affected: configure.in
Index: configure.in
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.in,v
retrieving revision 1.151.2.31
diff -a -u -u -r1.151.2.31 configure.in
--- configure.in 2005/01/31 02:54:47 1.151.2.31
+++ configure.in 2005/03/22 23:26:51
@@ -2090,8 +2090,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
Show replies by date