aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/netbsd.h
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-11-24 21:17:04 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-11-24 21:17:04 +0000
commit1ebe8c03cebbcc8f21a33254903570983dab8f3a (patch)
treec70b5b6eff1818170db1b035f5b19afe6c4ebd52 /gcc/config/netbsd.h
parent523cb4994d07591538b0ad90db7af6022cb4d5e7 (diff)
downloadgcc-1ebe8c03cebbcc8f21a33254903570983dab8f3a.zip
gcc-1ebe8c03cebbcc8f21a33254903570983dab8f3a.tar.gz
gcc-1ebe8c03cebbcc8f21a33254903570983dab8f3a.tar.bz2
netbsd-elf.h (STARTFILE_SPEC): Rename to NETBSD_STARTFILE_SPEC.
* config/netbsd-elf.h (STARTFILE_SPEC): Rename to NETBSD_STARTFILE_SPEC. (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC. (ENDFILE_SPEC): Likewise. * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise. From-SVN: r59436
Diffstat (limited to 'gcc/config/netbsd.h')
-rw-r--r--gcc/config/netbsd.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h
index f1f3589..61b44ac 100644
--- a/gcc/config/netbsd.h
+++ b/gcc/config/netbsd.h
@@ -90,9 +90,8 @@ Boston, MA 02111-1307, USA. */
FIXME: Could eliminate the duplication here if we were allowed to
use string concatenation. */
-#undef LIB_SPEC
#ifdef NETBSD_ENABLE_PTHREADS
-#define LIB_SPEC \
+#define NETBSD_LIB_SPEC \
"%{pthread: \
%{!p: \
%{!pg:-lpthread}} \
@@ -110,7 +109,7 @@ Boston, MA 02111-1307, USA. */
%{p:-lc_p} \
%{pg:-lc_p}}}"
#else
-#define LIB_SPEC \
+#define NETBSD_LIB_SPEC \
"%{posix: \
%{!p: \
%{!pg:-lposix}} \
@@ -124,23 +123,28 @@ Boston, MA 02111-1307, USA. */
%{pg:-lc_p}}}"
#endif
+#undef LIB_SPEC
+#define LIB_SPEC NETBSD_LIB_SPEC
+
/* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude
libgcc with -symbolic. */
-#undef LIBGCC_SPEC
#ifdef NETBSD_NATIVE
-#define LIBGCC_SPEC \
+#define NETBSD_LIBGCC_SPEC \
"%{!symbolic: \
%{!shared: \
%{!p: \
- %{!pg: -lgcc}}} \
+ %{!pg: -lgcc}}} \
%{shared: -lgcc_pic} \
%{p: -lgcc_p} \
%{pg: -lgcc_p}}"
#else
-#define LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
+#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
#endif
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC NETBSD_LIBGCC_SPEC
+
/* When building shared libraries, the initialization and finalization
functions for the library are .init and .fini respectively. */