diff options
author | midipix <writeonce@midipix.org> | 2016-05-11 10:26:24 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-11 10:26:24 -0400 |
commit | b1a8141177703c05f5e3df9b73332503d6d2abeb (patch) | |
tree | 35eba59cdc1bd73e8f28012f20970954594a4dd8 | |
parent | a6e0dcb609cefabff2817b2dd7bbc6698c5870d6 (diff) | |
download | dalist-b1a8141177703c05f5e3df9b73332503d6d2abeb.tar.bz2 dalist-b1a8141177703c05f5e3df9b73332503d6d2abeb.tar.xz |
build system: PE targets: handle subsystem setting in pe.mk.
-rw-r--r-- | project/overrides.mk | 7 | ||||
-rw-r--r-- | sysinfo/os/pe.mk | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/project/overrides.mk b/project/overrides.mk index 1b4b66a..e69de29 100644 --- a/project/overrides.mk +++ b/project/overrides.mk @@ -1,7 +0,0 @@ -ifeq ($(OS_BINFMT),PE) - -ifneq ($(PE_SUBSYSTEM),) - LDFLAGS_COMMON += -Wl,--subsystem=$(PE_SUBSYSTEM) -endif - -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) |