From 440b10cfb99741fcb2db5fa36ab821b771a32ef5 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 23 Feb 2019 08:46:35 -0500 Subject: linkage & visibility: employ the newly added -mstatic compiler option. --- project/extras.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'project') diff --git a/project/extras.mk b/project/extras.mk index aa488db..4c0ad40 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,6 +1,14 @@ CFLAGS_SHARED_ATTR += -DPTYC_PRE_ALPHA -DPTYC_EXPORT -CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC -fvisibility=protected -CFLAGS_APP_ATTR += -DPTYC_APP -fvisibility=protected +CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC -mstatic +CFLAGS_STATIC_ATTR += -DPE_STATIC -DDALIST_STATIC -DNTAPI_STATIC +CFLAGS_APP_ATTR += -DPTYC_APP + +ifeq ($(ALL_STATIC),yes) +CFLAGS_APP_ATTR += $(CFLAGS_STATIC_ATTR) +else +CFLAGS_APP_ATTR += -fvisibility=protetcted +endif + CFLAGS_CONFIG += -ffreestanding CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS) -- cgit v1.2.3