tgt/tgt-fix-build

21 lines
471 B
Plaintext
Raw Normal View History

diff --git a/usr/Makefile b/usr/Makefile
index 64cb58c..deb7e39 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -28,12 +28,15 @@ INCLUDES += -I.
CFLAGS += -D_GNU_SOURCE
CFLAGS += $(INCLUDES)
+ifneq ($(OPTFLAGS),)
+CFLAGS += $(OPTFLAGS)
ifneq ($(DEBUG),)
CFLAGS += -g -O0 -ggdb -rdynamic
else
CFLAGS += -g -O2 -fno-strict-aliasing
endif
CFLAGS += -Wall -Wstrict-prototypes -fPIC
+endif
CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
LIBS += -lpthread