From 8c58273867a7c211c2c8adbf29627f22f05d5e9b Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 13 May 2019 17:11:45 +0200 Subject: [PATCH] Put -lm into the global LDFLAGS and not into the linker command. This is more inline with what we're doing in the other addons. And -lm is a library that's linked unconditionally. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc67e4d..7d16bc5 100644 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ LDFLAGS := -shared -arch i386 -arch x86_64 else ifeq ($(OSTYPE), Windows) LDFLAGS := -shared -static-libgcc else -LDFLAGS := -shared +LDFLAGS := -shared -lm endif # ---------- @@ -219,7 +219,7 @@ release/game.dylib : $(CTF_OBJS) else release/game.so : $(CTF_OBJS) @echo "===> LD $@" - $(Q)$(CC) $(LDFLAGS) -o $@ $(CTF_OBJS) -lm + $(Q)$(CC) $(LDFLAGS) -o $@ $(CTF_OBJS) endif # ----------