X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_13%2Fexo1%2FMakefile;h=152498c48fc1188a4a3dafeff884d071e6cde775;hb=5d64063095177554839e67ddc73193929f115d07;hp=5d1b9ab13ddcbaee4388fb9778161cfedb6305ac;hpb=709c39546ac5df7fd3154073fd40227ea4939826;p=TD_C.git diff --git a/TP_13/exo1/Makefile b/TP_13/exo1/Makefile index 5d1b9ab..152498c 100644 --- a/TP_13/exo1/Makefile +++ b/TP_13/exo1/Makefile @@ -36,6 +36,7 @@ AR=ar WARN_FLAGS = -Wall -Wextra STD_FLAG = -std=c11 +UNAME := $(shell uname -o) ifeq ($(BUILD_TYPE),debug) BUILDDIR := .build/debug @@ -53,6 +54,10 @@ LTO_SUPPORT = yes 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