mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
--- gcc/config/i386/freebsd.h.orig Wed May 30 16:05:31 2001
|
|
+++ gcc/config/i386/freebsd.h Mon Jun 18 17:47:30 2001
|
|
@@ -76,6 +76,14 @@
|
|
|
|
#undef WCHAR_TYPE_SIZE
|
|
#define WCHAR_TYPE_SIZE BITS_PER_WORD
|
|
+
|
|
+#undef CC1_SPEC
|
|
+#define CC1_SPEC "\
|
|
+ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
|
|
+ %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
|
|
+
|
|
+#undef ASM_SPEC
|
|
+#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
|
|
|
|
/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
|
|
the magical crtbegin.o file (see crtstuff.c) which provides part
|
|
@@ -84,11 +92,18 @@
|
|
|
|
#undef STARTFILE_SPEC
|
|
#define STARTFILE_SPEC \
|
|
- "%{!shared: \
|
|
- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
|
|
- %{!p:%{profile:gcrt1.o%s} \
|
|
- %{!profile:crt1.o%s}}}} \
|
|
- crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
|
|
+ "%{maout: %{shared:c++rt0.o%s} \
|
|
+ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}} \
|
|
+ %{!maout: \
|
|
+ %{!shared: \
|
|
+ %{pg:gcrt1.o%s} \
|
|
+ %{!pg:%{p:gcrt1.o%s} \
|
|
+ %{!p:%{profile:gcrt1.o%s} \
|
|
+ %{!profile:crt1.o%s}}}} \
|
|
+ crti.o%s \
|
|
+ %{!shared:crtbegin.o%s} \
|
|
+ %{shared:crtbeginS.o%s} \
|
|
+ }"
|
|
|
|
/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
|
|
the magical crtend.o file (see crtstuff.c) which provides part of
|
|
@@ -98,7 +113,7 @@
|
|
|
|
#undef ENDFILE_SPEC
|
|
#define ENDFILE_SPEC \
|
|
- "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
|
+ "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
|
|
|
|
/* Provide a LINK_SPEC appropriate for FreeBSD. Here we provide support
|
|
for the special GCC options -static and -shared, which allow us to
|