diff options
author | rafan <rafan@FreeBSD.org> | 2007-07-22 00:21:26 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-07-22 00:21:26 +0800 |
commit | 4034ee0f7661d2a505d2b31d79251f495642b9e2 (patch) | |
tree | 09e2c3b16445e53c31c924846ad78fefce152664 /math/asir2000 | |
parent | 903c723163d63b1412acd5cef871ddf58162614d (diff) | |
download | freebsd-ports-gnome-4034ee0f7661d2a505d2b31d79251f495642b9e2.tar.gz freebsd-ports-gnome-4034ee0f7661d2a505d2b31d79251f495642b9e2.tar.zst freebsd-ports-gnome-4034ee0f7661d2a505d2b31d79251f495642b9e2.zip |
- Fix amd64 build by stealing a fix from devel/boehm-gc
Reported by: pointyhat via pav
Approved by: maintainer (implicit)
Diffstat (limited to 'math/asir2000')
-rw-r--r-- | math/asir2000/files/patch-include-private-gcconfig.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/math/asir2000/files/patch-include-private-gcconfig.h b/math/asir2000/files/patch-include-private-gcconfig.h new file mode 100644 index 000000000000..f38c961c46ed --- /dev/null +++ b/math/asir2000/files/patch-include-private-gcconfig.h @@ -0,0 +1,88 @@ +--- gc6.8/include/private/gcconfig.h.rorig Sat Oct 15 16:40:25 2005 ++++ gc6.8/include/private/gcconfig.h Sat Oct 15 16:42:43 2005 +@@ -62,7 +62,7 @@ + /* Determine the machine type: */ + # if defined(__arm__) || defined(__thumb__) + # define ARM32 +-# if !defined(LINUX) && !defined(NETBSD) ++# if !defined(LINUX) && !defined(NETBSD) && !defined(FREEBSD) + # define NOSYS + # define mach_type_known + # endif +@@ -334,10 +334,22 @@ + # define X86_64 + # define mach_type_known + # endif ++# if defined(__FreeBSD__) && defined(__amd64__) ++# define X86_64 ++# define mach_type_known ++# endif + # if defined(FREEBSD) && defined(__sparc__) + # define SPARC + # define mach_type_known +-#endif ++# endif ++# if defined(FREEBSD) && defined(__powerpc__) ++# define POWERPC ++# define mach_type_known ++# endif ++# if defined(FREEBSD) && defined(__arm__) ++# define ARM32 ++# define mach_type_known ++# endif + # if defined(bsdi) && (defined(i386) || defined(__i386__)) + # define I386 + # define BSDI +@@ -845,6 +857,16 @@ + # define DATASTART GC_data_start + # define DYNAMIC_LOADING + # endif ++# ifdef FREEBSD ++# define ALIGNMENT 4 ++# define OS_TYPE "FREEBSD" ++# ifdef __ELF__ ++# define DYNAMIC_LOADING ++# endif ++# define HEURISTIC2 ++ extern char etext[]; ++# define SEARCH_FOR_DATA_START ++# endif + # ifdef NOSYS + # define ALIGNMENT 4 + # define OS_TYPE "NOSYS" +@@ -1807,6 +1829,17 @@ + # endif + # define USE_GENERIC_PUSH_REGS + # endif ++# ifdef FREEBSD ++# define ALIGNMENT 4 ++# define OS_TYPE "FREEBSD" ++# ifdef __ELF__ ++# define DYNAMIC_LOADING ++# endif ++# define HEURISTIC2 ++ extern char etext[]; ++# define SEARCH_FOR_DATA_START ++# endif ++ + # ifdef LINUX + # define OS_TYPE "LINUX" + # define LINUX_STACKBOTTOM +@@ -1957,6 +1990,17 @@ + # ifdef __ELF__ + # define DYNAMIC_LOADING + # endif ++# define HEURISTIC2 ++ extern char etext[]; ++# define SEARCH_FOR_DATA_START ++# endif ++# ifdef FREEBSD ++# define OS_TYPE "FREEBSD" ++# define SIG_SUSPEND SIGUSR1 ++# define SIG_THR_RESTART SIGUSR2 ++# ifdef __ELF__ ++# define DYNAMIC_LOADING ++# endif + # define HEURISTIC2 + extern char etext[]; + # define SEARCH_FOR_DATA_START |