mirror of
https://github.com/yquake2/ctf.git
synced 2025-05-11 02:50:38 +00:00
Make LDFLAGS overrideable
Based on <https://github.com/yquake2/yquake2/commits/cflags>. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
4bb77517bc
commit
fe5a2eea05
1 changed files with 7 additions and 4 deletions
11
Makefile
11
Makefile
|
@ -92,13 +92,16 @@ endif
|
|||
|
||||
# ----------
|
||||
|
||||
# Base LDFLAGS.
|
||||
# Base LDFLAGS, none by default.
|
||||
LDFLAGS ?=
|
||||
|
||||
# Required LDFLAGS to build a game module.
|
||||
ifeq ($(OSTYPE), Darwin)
|
||||
LDFLAGS := -shared -arch x86_64
|
||||
LDFLAGS += -shared -arch x86_64
|
||||
else ifeq ($(OSTYPE), Windows)
|
||||
LDFLAGS := -shared -static-libgcc
|
||||
LDFLAGS += -shared -static-libgcc
|
||||
else
|
||||
LDFLAGS := -shared -lm
|
||||
LDFLAGS += -shared -lm
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
|
Loading…
Reference in a new issue