summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Rules.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index c5d1d636c..86ea855f4 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -91,7 +91,9 @@ ifeq ($(DODEBUG),y)
HOST_CFLAGS += -g
LDFLAGS += -Wl,-g
HOST_LDFLAGS += -Wl,-g
-else
+endif
+
+ifeq ($(DOSTRIP),y)
LDFLAGS += -Wl,-s
HOST_LDFLAGS += -Wl,-s
endif