Browse Source

LDFLAGS fix on non-supported platforms

Grant Limberg 3 years ago
parent
commit
cfae20e0df
1 changed files with 6 additions and 4 deletions
  1. 6 4
      make-linux.mk

+ 6 - 4
make-linux.mk

@@ -41,10 +41,12 @@ else
 	override DEFS+=-DZT_USE_SYSTEM_NATPMP
 endif
 
-ifeq ($(ZT_DEBUG),1)
-	LDLIBS+=zeroidc/target/debug/libzeroidc.a -ldl -lssl -lcrypto
-else
-	LDLIBS+=zeroidc/target/release/libzeroidc.a -ldl -lssl -lcrypto
+ifeq ($(ZT_SSO_SUPPORTED), 1)
+	ifeq ($(ZT_DEBUG),1)
+		LDLIBS+=zeroidc/target/debug/libzeroidc.a -ldl -lssl -lcrypto
+	else
+		LDLIBS+=zeroidc/target/release/libzeroidc.a -ldl -lssl -lcrypto
+	endif
 endif
 
 # Use bundled http-parser since distribution versions are NOT API-stable or compatible!