summaryrefslogtreecommitdiff
blob: 31fe300b105f047342d211c8f175aff7e7164cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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