summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-11-25 06:07:28 -0500
committermidipix <writeonce@midipix.org>2018-11-25 09:17:34 -0500
commit885c20518f0f010c0fd12acc2e8967d4a1c9e69e (patch)
tree0cb1e570fff22958943da238b6e2e8ab5e4432f6
parent1b2ce530be0276eb99aed765b1f42217a3a0bfa9 (diff)
downloadmdso-885c20518f0f010c0fd12acc2e8967d4a1c9e69e.tar.bz2
mdso-885c20518f0f010c0fd12acc2e8967d4a1c9e69e.tar.xz
build system: only apply LDFLAGS_IMPLIB to the package's primary shared lib.
-rw-r--r--Makefile.in1
-rw-r--r--sysinfo/os/pe.mk1
2 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index ad393f7..76d0133 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -218,6 +218,7 @@ app-objs: dirs $(APP_OBJS)
$(SHARED_LIB): $(SHARED_OBJS)
+$(SHARED_LIB): LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
$(STATIC_LIB): $(STATIC_OBJS)
diff --git a/sysinfo/os/pe.mk b/sysinfo/os/pe.mk
index c3c5ba0..6f9e8ef 100644
--- a/sysinfo/os/pe.mk
+++ b/sysinfo/os/pe.mk
@@ -4,7 +4,6 @@ DSO_REF_SOLINK = $(IMPLIB_SOLINK)
LDFLAGS_IMPLIB += -Wl,--output-def
LDFLAGS_IMPLIB += -Wl,$(IMPLIB_DEF)
-LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
LDFLAGS_SONAME += -Wl,-soname
LDFLAGS_SONAME += -Wl,$(DSO_SONAME)