diff options
author | midipix <writeonce@midipix.org> | 2019-02-23 08:46:35 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-02-23 08:47:06 -0500 |
commit | 440b10cfb99741fcb2db5fa36ab821b771a32ef5 (patch) | |
tree | 3d6ec4a176ebe7e4c53076b76a22cff5707385c0 /project | |
parent | 2ae200aaccadf7ba9dd0caa211b65161489a4dde (diff) | |
download | ptycon-440b10cfb99741fcb2db5fa36ab821b771a32ef5.tar.bz2 ptycon-440b10cfb99741fcb2db5fa36ab821b771a32ef5.tar.xz |
linkage & visibility: employ the newly added -mstatic compiler option.
Diffstat (limited to 'project')
-rw-r--r-- | project/extras.mk | 12 |
1 files changed, 10 insertions, 2 deletions
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) |