repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Buildsystem: be more friendly with cygwin environment
[TD_C.git]
/
TP_11
/
exo2
/
Makefile
diff --git
a/TP_11/exo2/Makefile
b/TP_11/exo2/Makefile
index 5555dc6d496a1e3459281169f51d963464b96b67..d8dd23abf8ad190ea85e2fad57ea90069e80bd91 100644
(file)
--- a/
TP_11/exo2/Makefile
+++ b/
TP_11/exo2/Makefile
@@
-36,6
+36,7
@@
AR=ar
WARN_FLAGS = -Wall -Wextra
STD_FLAG = -std=c11
WARN_FLAGS = -Wall -Wextra
STD_FLAG = -std=c11
+UNAME := $(shell uname -o)
ifeq ($(BUILD_TYPE),debug)
BUILDDIR := .build/debug
ifeq ($(BUILD_TYPE),debug)
BUILDDIR := .build/debug
@@
-53,6
+54,10
@@
LTO_SUPPORT = yes
GOLD_SUPPORT = yes
endif
GOLD_SUPPORT = yes
endif
+ifeq ($(UNAME),Cygwin)
+GOLD_SUPPORT = no
+endif
+
ifeq ($(LTO_SUPPORT),yes)
CFLAGS_LTO = -flto -ffat-lto-objects
LDFLAGS_LTO = -fuse-linker-plugin -flto
ifeq ($(LTO_SUPPORT),yes)
CFLAGS_LTO = -flto -ffat-lto-objects
LDFLAGS_LTO = -fuse-linker-plugin -flto