From 89d9619dc88f67fee7e9c57d09cdf0203d41c252 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 2 Jul 1997 07:00:16 -0400 Subject: [PATCH] (LINK_SPEC): Pass -shared for -shared. ({CPP,LINK}_SPEC): Choose for glibc 1 or 2 depending on USE_GNULIBC_1. From-SVN: r14376 --- gcc/config/m68k/linux.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h index 70f5fa51eb9..6110fc35a5d 100644 --- a/gcc/config/m68k/linux.h +++ b/gcc/config/m68k/linux.h @@ -106,6 +106,7 @@ Boston, MA 02111-1307, USA. */ "-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(m68k) -Amachine(m68k)" #undef CPP_SPEC +#ifdef USE_GNULIBC_1 #if TARGET_DEFAULT & MASK_68881 #define CPP_SPEC \ "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!msoft-float:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE}" @@ -113,6 +114,15 @@ Boston, MA 02111-1307, USA. */ #define CPP_SPEC \ "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m68881:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE}" #endif +#else +#if TARGET_DEFAULT & MASK_68881 +#define CPP_SPEC \ + "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!msoft-float:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" +#else +#define CPP_SPEC \ + "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m68881:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" +#endif +#endif /* We override the ASM_SPEC from svr4.h because we must pass -m68040 down to the assembler. */ @@ -138,21 +148,29 @@ Boston, MA 02111-1307, USA. */ /* If ELF is the default format, we should not use /lib/elf. */ #undef LINK_SPEC +#ifdef USE_GNULIBC_1 #ifndef LINUX_DEFAULT_ELF -#define LINK_SPEC "-m m68kelf %{shared} %{symbolic:-shared -Bsymbolic} \ +#define LINK_SPEC "-m m68kelf %{shared:-shared} %{symbolic:-shared -Bsymbolic} \ %{!shared:%{!symbolic: \ %{!static: \ %{rdynamic:-export-dynamic} \ %{!dynamic-linker*:-dynamic-linker /lib/elf/ld-linux.so.1} \ %{!rpath*:-rpath /lib/elf/}} %{static}}}" #else -#define LINK_SPEC "-m m68kelf %{shared} %{symbolic:-shared -Bsymbolic} \ +#define LINK_SPEC "-m m68kelf %{shared:-shared} %{symbolic:-shared -Bsymbolic} \ %{!shared:%{!symbolic: \ %{!static: \ %{rdynamic:-export-dynamic} \ %{!dynamic-linker*:-dynamic-linker /lib/ld-linux.so.1}} \ %{static}}}" #endif +#else +#define LINK_SPEC "-m m68kelf %{shared:-shared} %{symbolic:-shared -Bsymbolic} \ + %{!shared:%{!symbolic: \ + %{!static: \ + %{rdynamic:-export-dynamic}} \ + %{static}}}" +#endif /* For compatibility with linux/a.out */ -- 2.30.2