diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-14 01:49:14 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-14 01:49:14 +0100 |
commit | 8bdff8c1003501bab0dbc63ed6c391ff2f2da4b5 (patch) | |
tree | d36f30676cb75b3146959f06e2565a12bf12633b /mk/lib.mk | |
parent | 14955c297de82e964ea5bf44f8aaf543d4cae33a (diff) | |
parent | f665c5d9b368cba0ca153323a805844f179e8bee (diff) |
Merge branch 'cygwin-master' of https://github.com/ternaris/nix
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -52,8 +52,13 @@ endif BUILD_SHARED_LIBS ?= 1 ifeq ($(BUILD_SHARED_LIBS), 1) - GLOBAL_CFLAGS += -fPIC - GLOBAL_CXXFLAGS += -fPIC + ifeq (CYGWIN,$(findstring CYGWIN,$(OS))) + GLOBAL_CFLAGS += -U__STRICT_ANSI__ + GLOBAL_CXXFLAGS += -U__STRICT_ANSI__ + else + GLOBAL_CFLAGS += -fPIC + GLOBAL_CXXFLAGS += -fPIC + endif ifneq ($(OS), Darwin) ifneq ($(OS), SunOS) GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries |