[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
- 314/376: Allow external code using libnixexpr to add types, (continued)
- 314/376: Allow external code using libnixexpr to add types, Ludovic Courtès, 2015/01/28
- 328/376: Provide some fallback defaults for the CA bundle, Ludovic Courtès, 2015/01/28
- 329/376: Add option to disable binary cache certificate checking, Ludovic Courtès, 2015/01/28
- 330/376: Doh, Ludovic Courtès, 2015/01/28
- 327/376: Use https://cache.nixos.org instead of http://cache.nixos.org, Ludovic Courtès, 2015/01/28
- 331/376: Fix bad comment, Ludovic Courtès, 2015/01/28
- 320/376: Define ‘environ’, Ludovic Courtès, 2015/01/28
- 333/376: builtins.readFile: realise context associated with the path, Ludovic Courtès, 2015/01/28
- 332/376: Always use https to fetch the Nixpkgs channel, Ludovic Courtès, 2015/01/28
- 326/376: Link against perl.dll on Cygwin, Ludovic Courtès, 2015/01/28
- 324/376: Set custom compiler flags on Cygwin,
Ludovic Courtès <=
- 325/376: Fix library handling on Cygwin, Ludovic Courtès, 2015/01/28
- 335/376: Don't use RPATH on Darwin, Ludovic Courtès, 2015/01/28
- 337/376: Revert "Use posix_spawn to run the pager", Ludovic Courtès, 2015/01/28
- 334/376: Update signing.txt, Ludovic Courtès, 2015/01/28
- 336/376: Cruft, Ludovic Courtès, 2015/01/28
- 339/376: Include cacert in the binary tarball, Ludovic Courtès, 2015/01/28
- 340/376: Rename function, Ludovic Courtès, 2015/01/28
- 342/376: Don't do vfork in conjunction with setuid, Ludovic Courtès, 2015/01/28
- 341/376: Use vfork, Ludovic Courtès, 2015/01/28
- 345/376: allow custom docbook paths/URLs, use a working URL for docbook.rng, Ludovic Courtès, 2015/01/28