Files
ports/games/opentyrian/files/patch-Makefile
T
Stefan Eßer bdfbdafad2 Fix build with -fno-common
While here address some complaints by portlint and portclippy
2020-09-26 11:38:14 +00:00

32 lines
751 B
Plaintext

--- Makefile.orig 2013-09-07 23:56:16 UTC
+++ Makefile
@@ -8,8 +8,6 @@ endif
TARGET := opentyrian
-WITH_NETWORK := true
-
############################################################
STRIP := strip
@@ -21,19 +19,9 @@ OBJS := $(SRCS:src/%.c=obj/%.o)
# FLAGS ####################################################
-ifneq ($(MAKECMDGOALS), release)
- EXTRA_CFLAGS += -g3 -O0 -Werror
-else
- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
-endif
EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
ifeq ($(WITH_NETWORK), true)
EXTRA_CFLAGS += -DWITH_NETWORK
-endif
-
-HG_REV := $(shell hg id -ib && touch src/hg_revision.h)
-ifneq ($(HG_REV), )
- EXTRA_CFLAGS += '-DHG_REV="$(HG_REV)"'
endif
EXTRA_LDLIBS += -lm