summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/os
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 10:24:00 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:49 -0500
commit972b5987c491e022daa27ffe66e412af10b216ec (patch)
treeee26fcc4fba079bcb102f0e5d5a6455e26788e8f /sysinfo/os
parente539245a66095b67ad86c5452f44b976f8dfd257 (diff)
downloadperk-972b5987c491e022daa27ffe66e412af10b216ec.tar.bz2
perk-972b5987c491e022daa27ffe66e412af10b216ec.tar.xz
build system: PE targets: handle subsystem setting in pe.mk.
Diffstat (limited to 'sysinfo/os')
-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)