Print this page
Linking fixes for Solarish systems

@@ -14,11 +14,11 @@
 #
 
 ifeq ($(shell uname),Darwin)
     LIBS = -lc -lpthread
 else
-    LIBS = -lc -lpthread -lrt
+    LIBS = -lc -lpthread -lrt -lcrypto
 endif
 
 OBJS = $(wildcard ../utils/*.o ../stuffer/*.o ../tls/*.o ../iana/*.o ../crypto/*.o ../error/*.o ../libcrypto-root/lib/libcrypto.a)
 all: libs2n.a libs2n.so libs2n.dylib
 

@@ -26,10 +26,13 @@
 
 libs2n.a: ${OBJS}
         ar cru libs2n.a ${OBJS}
         ranlib libs2n.a
 
+#libs2n.so: ${OBJS}
+#       ${CC} -shared ${LIBS} -o libs2n.so ${OBJS}
+
 libs2n.so: ${OBJS}
-        ${CC} -shared ${LIBS} -o libs2n.so ${OBJS}
+        ld -shared ${LIBS} -o libs2n.so ${OBJS}
 
 libs2n.dylib: ${OBJS}
         test ! -f /usr/lib/libSystem.dylib || libtool -dynamic ${LIBS} -o libs2n.dylib ${OBJS}