Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 169963 Details for
Bug 192403
sys-devel/gcc-4.2.0 links libgcc_s.so.1 into everything on freebsd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bsd patch
gcc4_bsd.patch (text/plain), 1.81 KB, created by
Javier Villavicencio (RETIRED)
on 2008-10-26 22:39:22 UTC
(
hide
)
Description:
bsd patch
Filename:
MIME Type:
Creator:
Javier Villavicencio (RETIRED)
Created:
2008-10-26 22:39:22 UTC
Size:
1.81 KB
patch
obsolete
>diff -ruN gcc-4.3.1.orig/gcc/config/freebsd-spec.h gcc-4.3.1/gcc/config/freebsd-spec.h >--- gcc-4.3.1.orig/gcc/config/freebsd-spec.h 2007-08-02 07:49:31 -0300 >+++ gcc-4.3.1/gcc/config/freebsd-spec.h 2008-08-29 21:56:57 -0300 >@@ -79,9 +81,10 @@ > #define FBSD_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}" >+ %{!p:%{profile:gcrt1.o%s} \ >+ %{!profile:crt1.o%s}}}} \ >+ crti.o%s \ >+ %{static:crtbeginT.o%s;shared:crtbeginS.o%s;:crtbegin.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 >@@ -119,7 +122,8 @@ > %{pg: -lc_p} \ > }" > #else >-#if FBSD_MAJOR < 5 >+#include <sys/param.h> >+#if __FreeBSD_version < 500016 > #define FBSD_LIB_SPEC " \ > %{!shared: \ > %{!pg: \ >@@ -129,17 +133,34 @@ > %{!pthread:-lc_p} \ > %{pthread:-lc_r_p}} \ > }" >-#else >+#elif __FreeBSD_version < 700022 > #define FBSD_LIB_SPEC " \ > %{!shared: \ > %{!pg: %{pthread:-lpthread} -lc} \ > %{pg: %{pthread:-lpthread_p} -lc_p} \ > }" >+#else >+#define FBSD_LIB_SPEC " \ >+ %{!shared: \ >+ %{!pg: %{pthread:-lpthread} -lc} \ >+ %{pg: %{pthread:-lpthread_p} -lc_p}} \ >+ %{shared: \ >+ %{pthread:-lpthread} -lc} \ >+ " > #endif > #endif > >-#if FBSD_MAJOR < 6 >+#if FBSD_MAJOR < 5 > #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1" > #else > #define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1" > #endif >+ >+#if defined(HAVE_LD_EH_FRAME_HDR) >+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " >+#endif >+ >+/* Use --as-needed -lgcc_s for eh support. */ >+#ifdef HAVE_LD_AS_NEEDED >+#define USE_LD_AS_NEEDED 1 >+#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192403
:
130795
|
130797
|
134172
|
157577
|
164138
|
169959
|
169961
| 169963