From 5b51b1f540941901dbdb99ce49990679a58ee56c Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Tue, 29 Apr 2003 12:01:59 +0000 Subject: freebsd.h (LINK_SHLIB_SPEC): New macro. * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro. (SIZE_TYPE): New macro. From-SVN: r66217 --- gcc/ChangeLog | 2 ++ gcc/config/rs6000/freebsd.h | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44475ef..f598277 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,8 @@ 2003-04-29 David O'Brien * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker. + * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro. + (SIZE_TYPE): New macro. 2003-04-28 Mark Mitchell diff --git a/gcc/config/rs6000/freebsd.h b/gcc/config/rs6000/freebsd.h index 22e01be..be71d5d 100644 --- a/gcc/config/rs6000/freebsd.h +++ b/gcc/config/rs6000/freebsd.h @@ -39,6 +39,11 @@ #undef LINK_OS_DEFAULT_SPEC #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)" +/* XXX: This is wrong for many platforms in sysv4.h. + We should work on getting that defination fixed. */ +#undef LINK_SHLIB_SPEC +#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}" + /************************[ Target stuff ]***********************************/ @@ -46,6 +51,9 @@ Needs to agree with . GCC defaults come from c-decl.c, c-common.c, and config//.h. */ +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + /* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */ #undef WCHAR_TYPE -- cgit v1.1