summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make-linux.mk18
1 files changed, 10 insertions, 8 deletions
diff --git a/make-linux.mk b/make-linux.mk
index de209d9f..62f319bf 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -42,14 +42,6 @@ endif
# Trying to use dynamically linked libhttp-parser causes tons of compatibility problems.
ONE_OBJS+=ext/http-parser/http_parser.o
-ifeq ($(ZT_SYNOLOGY), 1)
- override DEFS+=-D__SYNOLOGY__
-endif
-
-ifeq ($(ZT_QNAP), 1)
- override DEFS+=-D__QNAP__
-endif
-
ifeq ($(ZT_TRACE),1)
override DEFS+=-DZT_TRACE
endif
@@ -80,6 +72,16 @@ else
STRIP+=--strip-all
endif
+ifeq ($(ZT_QNAP), 1)
+ override DEFS+=-D__QNAP__
+endif
+
+ifeq ($(ZT_SYNOLOGY), 1)
+ override CFLAGS+=-fPIC
+ override CXXFLAGS+=-fPIC
+ override DEFS+=-D__SYNOLOGY__
+endif
+
ifeq ($(ZT_TRACE),1)
override DEFS+=-DZT_TRACE
endif