summaryrefslogtreecommitdiffhomepage
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 10:24:00 -0400
committermidipix <writeonce@midipix.org>2016-05-11 10:26:36 -0400
commit50b5d8e66840384ead3f7a456a1e31679aa60d93 (patch)
treea1a8470702f2a1a11c5cb02e472275ba55d13e34 /sysinfo
parentc1b404468308e51ff7ea2c87c3f08612dfc04c4c (diff)
downloadntcon-50b5d8e66840384ead3f7a456a1e31679aa60d93.tar.bz2
ntcon-50b5d8e66840384ead3f7a456a1e31679aa60d93.tar.xz
build system: PE targets: handle subsystem setting in pe.mk.
Diffstat (limited to 'sysinfo')
-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)