summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-05-04 12:09:04 -0700
committerJoseph Henry <josephjah@gmail.com>2018-05-04 12:09:04 -0700
commitd01b1ffde51c2becef6ed0b55dfde1659aaa474f (patch)
treef8a613569da32693c9225d7c762509148de13caf
parent0c60963a94f7bb3b9458aaa65d78a83e0e7004d2 (diff)
downloadinfinitytier-d01b1ffde51c2becef6ed0b55dfde1659aaa474f.tar.gz
infinitytier-d01b1ffde51c2becef6ed0b55dfde1659aaa474f.zip
Added -fPIC for Synology builds
-rw-r--r--make-linux.mk17
1 files changed, 9 insertions, 8 deletions
diff --git a/make-linux.mk b/make-linux.mk
index 2e6a8632..a571f344 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,15 @@ else
STRIP+=--strip-all
endif
+ifeq ($(ZT_QNAP), 1)
+ override DEFS+=-D__QNAP__
+endif
+
+ifeq ($(ZT_SYNOLOGY), 1)
+ CXXFLAGS+=-fPIC
+ override DEFS+=-D__SYNOLOGY__
+endif
+
ifeq ($(ZT_TRACE),1)
override DEFS+=-DZT_TRACE
endif