guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

324/376: Set custom compiler flags on Cygwin


From: Ludovic Courtès
Subject: 324/376: Set custom compiler flags on Cygwin
Date: Wed, 28 Jan 2015 22:05:55 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 936f68668c191ca6f904dd868fe364aeba1d531f
Author: Marko Durkovic <address@hidden>
Date:   Tue Dec 9 12:20:27 2014 +0100

    Set custom compiler flags on Cygwin
---
 mk/lib.mk |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/mk/lib.mk b/mk/lib.mk
index 56e162d..f7c8c6b 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -29,8 +29,13 @@ mandir ?= $(prefix)/share/man
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]