X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_13%2Fexo2%2FMakefile;h=2fa2084721105e90944063a06a376fcb9fe8ca9e;hp=8f48f4e661d0cc491f7a60c2ef854a7b3dc30a6e;hb=5d64063095177554839e67ddc73193929f115d07;hpb=2737ed7c252e5f624b8f98cbe28eb05450c9420e diff --git a/TP_13/exo2/Makefile b/TP_13/exo2/Makefile index 8f48f4e..2fa2084 100644 --- a/TP_13/exo2/Makefile +++ b/TP_13/exo2/Makefile @@ -37,6 +37,7 @@ AR=ar WARN_FLAGS = -Wall -Wextra STD_FLAG = -std=c11 +UNAME := $(shell uname -o) ifeq ($(BUILD_TYPE),debug) BUILDDIR := .build/debug @@ -54,6 +55,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