summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 10:24:00 -0400
committermidipix <writeonce@midipix.org>2016-05-11 10:34:03 -0400
commit839fb448c6cdd718d35c4b0860539f114900a106 (patch)
tree0a502333a575268c52c327c0126400918db50ccf
parent88c6c66a8066f5a304f0dac8922955e4818e27ad (diff)
downloadslibtool-839fb448c6cdd718d35c4b0860539f114900a106.tar.bz2
slibtool-839fb448c6cdd718d35c4b0860539f114900a106.tar.xz
build system: PE targets: handle subsystem setting in pe.mk.
-rw-r--r--sysinfo/os/pe.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysinfo/os/pe.mk b/sysinfo/os/pe.mk
index abc76e8..ab7b79f 100644
--- a/sysinfo/os/pe.mk
+++ b/sysinfo/os/pe.mk
@@ -5,6 +5,9 @@ LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
LDFLAGS_SHARED += -Wl,-soname
LDFLAGS_SHARED += -Wl,$(DSO_SONAME)
+PE_SUBSYSTEM ?= windows
+LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM)
+
implib: implib-ver package-implib-soname package-implib-solink
implib-ver: shared-lib $(IMPLIB_VER)