Changes, New Features, and Fixes in GCC 4.9 can be found here: https://gcc.gnu.org/gcc-4.9/changes.html This is based heavily on lang/gcc47 but updated for GCC 4.9.1. Tested on SmartOS (32-bit and 64-bit) and NetBSD 6.1.4/amd64.
26 lines
1 KiB
Text
26 lines
1 KiB
Text
$NetBSD: patch-libgcc_config_t-slibgcc-darwin,v 1.1 2014/09/04 18:43:11 jperkin Exp $
|
|
|
|
If we don't install libgcc_s.10.[45].dylib, our gcc links binaries
|
|
with *both* /usr/lib/libgcc_s.1.dylib and
|
|
${GCC_PREFIX}/lib/libgcc_s.1.dylib, which is certainly a bad thing.
|
|
|
|
The problem was already reported to the upstream but it caught
|
|
seemingly no attention:
|
|
http://gcc.gnu.org/ml/gcc-help/2010-07/msg00164.html
|
|
|
|
--- libgcc/config/t-slibgcc-darwin.orig 2011-11-02 10:49:46.000000000 +0000
|
|
+++ libgcc/config/t-slibgcc-darwin
|
|
@@ -27,13 +27,7 @@ SHLIB_MKMAP_OPTS = -v leading_underscore
|
|
SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/libgcc-libsystem.ver
|
|
SHLIB_VERPFX = $(srcdir)/config/$(cpu_type)/libgcc-darwin
|
|
|
|
-# we're only going to build the stubs if the target slib is /usr/lib
|
|
-# there is no other case in which they're useful in a live system.
|
|
-ifeq (/usr/lib,$(shlib_slibdir))
|
|
LGCC_STUBS = libgcc_s.10.4.dylib libgcc_s.10.5.dylib
|
|
-else
|
|
-LGCC_STUBS =
|
|
-endif
|
|
|
|
LGCC_FILES = libgcc_s.$(SHLIB_SOVERSION)$(SHLIB_EXT)
|
|
LGCC_FILES += $(LGCC_STUBS)
|