Commit Diff


commit - 2a931b7266c8a6550aca5f75b2ce3bf8655aa45b
commit + 0d85a1cf7df9d185da1327da43dc62d2447ad32c
blob - 7e8c90dcb841c7fb7e07b9867e6978a7e9dedb3c
blob + 2d08a470adaed1f4cb645f56cfd58a4d0d6319d4
--- bin/9l
+++ bin/9l
@@ -97,6 +97,7 @@ then
 		eval "have$i() { false; }"
 	done
 	havethread() { false; }
+	havesec() { false; }
 
 	# now find correct order
 	libsl=""
@@ -141,6 +142,12 @@ then
 		libsl="$libsl -lthread -l9"
 	fi
 
+	# cycle: lib9 netcrypt uses libsec
+	if havesec
+	then
+		libsl="$libsl -lsec -l9"
+	fi
+
 	if [ "x$needdraw" = xtrue ]
 	then
 		if [ "x$X11" = "x" ]