summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 10:24:00 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:25 -0400
commitdc0640c44d2b96020c10bc728b10cd385fd2af01 (patch)
tree1af59f63d63d873bd81cd8565c19ecf9590a1101
parent0ff2c22e1b1115ba11a4aaeaa3ac704e35b67c13 (diff)
downloadntapi-dc0640c44d2b96020c10bc728b10cd385fd2af01.tar.bz2
ntapi-dc0640c44d2b96020c10bc728b10cd385fd2af01.tar.xz
build system: PE targets: handle subsystem setting in pe.mk.
-rw-r--r--project/overrides.mk3
-rw-r--r--sysinfo/os/pe.mk3
2 files changed, 3 insertions, 3 deletions
diff --git a/project/overrides.mk b/project/overrides.mk
index 65ebf21..e69de29 100644
--- a/project/overrides.mk
+++ b/project/overrides.mk
@@ -1,3 +0,0 @@
-ifneq ($(PE_SUBSYSTEM),)
- LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM)
-endif
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)