summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d593e0..95bd2cc 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,7 @@ endif
endif #PORTABLE
endif #Windows
+ifndef OPT
ifdef DEBUG
OPT:=-g3 -O0
else
@@ -78,6 +79,7 @@ else
OPT:=-O2 -flto
endif #NOLTO
endif #DEBUG
+endif #OPT
CFLAGS:=$(OPT) $(CFLAGS)
LDFLAGS:=$(OPT) $(LDFLAGS)