mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
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:
parent
4f8b49daf3
commit
8c58273867
1 changed files with 2 additions and 2 deletions
4
Makefile
4
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
|
||||
|
||||
# ----------
|
||||
|
|
Loading…
Reference in a new issue