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.
This commit is contained in:
Yamagi Burmeister 2019-05-13 17:11:45 +02:00
parent 4f8b49daf3
commit 8c58273867

View file

@ -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
# ----------