From 972b5987c491e022daa27ffe66e412af10b216ec Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 04:35:49 +0000 Subject: build system: PE targets: handle subsystem setting in pe.mk. --- 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)