summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-12-03 18:24:19 +0100
committerFabian Groffen <grobian@gentoo.org>2017-12-03 18:24:34 +0100
commit5c118ba950c1ad185fb1d18e8121b59b9169d42b (patch)
tree6583ccc2f4eef273e42e04b2a56274135a39739a /sci-electronics/ngspice/files
parentnet-vpn/kvpnc: Drop 0.9.6a-r2, broken on stable, masked anyway (diff)
downloadgentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.tar.gz
gentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.tar.bz2
gentoo-5c118ba950c1ad185fb1d18e8121b59b9169d42b.zip
sci-electronics/ngspice: replace ldflags sed with a patch for Darwin
The sed was too greedy, causing bugs like #462318. Replace with a patch that ensures we only once append to LDFLAGS, not multiple times. Closes: https://bugs.gentoo.org/462318 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'sci-electronics/ngspice/files')
-rw-r--r--sci-electronics/ngspice/files/ngspice-26-respect-ldflags.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sci-electronics/ngspice/files/ngspice-26-respect-ldflags.patch b/sci-electronics/ngspice/files/ngspice-26-respect-ldflags.patch
new file mode 100644
index 00000000000..31fe300b105
--- /dev/null
+++ b/sci-electronics/ngspice/files/ngspice-26-respect-ldflags.patch
@@ -0,0 +1,31 @@
+--- ngspice-26/src/xspice/icm/makedefs.in
++++ ngspice-26/src/xspice/icm/makedefs.in
+@@ -44,16 +44,19 @@
+ LIBS = -lm
+
+ # Flags to use when linking shared library
+-LDFLAGS = -shared
+ ifeq ($(ISMINGW), 1)
+- LDFLAGS = -shared @LDFLAGS@
+-endif
+-ifeq "$(strip $(uname))" "Darwin"
+- LDFLAGS = -bundle -flat_namespace -undefined suppress
+-endif
+-ifeq "$(strip $(uname))" "SunOS"
+- ifneq "$(CC)" "gcc"
+- LDFLAGS = -G
++ LDFLAGS += -shared @LDFLAGS@
++else
++ ifeq "$(strip $(uname))" "Darwin"
++ LDFLAGS += -bundle -flat_namespace -undefined suppress
++ else
++ ifeq "$(strip $(uname))" "SunOS"
++ ifneq "$(CC)" "gcc"
++ LDFLAGS += -G
++ else
++ LDFLAGS += -shared
++ endif
++ endif
+ endif
+ endif
+