diff options
author | obrien <obrien@FreeBSD.org> | 2003-01-01 08:46:11 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-01-01 08:46:11 +0800 |
commit | 14493907b69ad21f178037f92b5e80832017c518 (patch) | |
tree | 390bdcc386a8fbc7ea68f092e12f53c22206e722 /lang/gcc295 | |
parent | 2316e480bca3c9f637816ca17dbaa871d2efd888 (diff) | |
download | freebsd-ports-gnome-14493907b69ad21f178037f92b5e80832017c518.tar.gz freebsd-ports-gnome-14493907b69ad21f178037f92b5e80832017c518.tar.zst freebsd-ports-gnome-14493907b69ad21f178037f92b5e80832017c518.zip |
Actually all that needed to be done in this file to fix for 5-CURRENT
is to remove the explicit "-m elf_i386" and use the default emulation.
Diffstat (limited to 'lang/gcc295')
-rw-r--r-- | lang/gcc295/files/patch-af | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/lang/gcc295/files/patch-af b/lang/gcc295/files/patch-af index 18cc56afca13..d940ca8480a0 100644 --- a/lang/gcc295/files/patch-af +++ b/lang/gcc295/files/patch-af @@ -1,5 +1,5 @@ ---- gcc/config/i386/freebsd.h.orig Mon Dec 18 15:05:58 2000 -+++ gcc/config/i386/freebsd.h Sun Dec 22 23:08:15 2002 +--- gcc/config/i386/freebsd.h.orig Mon Dec 18 06:05:58 2000 ++++ gcc/config/i386/freebsd.h Tue Dec 31 16:42:34 2002 @@ -35,9 +35,9 @@ libraries compiled with the native cc, so undef it. */ #undef NO_DOLLAR_IN_LABEL @@ -93,32 +93,12 @@ /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate libc, depending on whether we're doing profiling or need threads support. -@@ -230,6 +242,20 @@ +@@ -230,7 +242,7 @@ done. */ #undef LINK_SPEC -+#include <osreldate.h> -+#if __FreeBSD_version >= 500042 -+#define LINK_SPEC "-m elf_i386_fbsd \ -+ %{Wl,*:%*} \ -+ %{v:-V} \ -+ %{assert*} %{R*} %{rpath*} %{defsym*} \ -+ %{shared:-Bshareable %{h*} %{soname*}} \ -+ %{!shared: \ -+ %{!static: \ -+ %{rdynamic:-export-dynamic} \ -+ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \ -+ %{static:-Bstatic}} \ -+ %{symbolic:-Bsymbolic}" -+#else - #define LINK_SPEC "-m elf_i386 \ +-#define LINK_SPEC "-m elf_i386 \ ++#define LINK_SPEC "\ %{Wl,*:%*} \ %{v:-V} \ -@@ -241,6 +267,7 @@ - %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \ - %{static:-Bstatic}} \ - %{symbolic:-Bsymbolic}" -+#endif - - /* A C statement to output to the stdio stream FILE an assembler - command to advance the location counter to a multiple of 1<<LOG + %{assert*} %{R*} %{rpath*} %{defsym*} \ |