Print this page
Linking fixes for Solarish systems

*** 14,24 **** # ifeq ($(shell uname),Darwin) LIBS = -lc -lpthread else ! LIBS = -lc -lpthread -lrt 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 --- 14,24 ---- # ifeq ($(shell uname),Darwin) LIBS = -lc -lpthread else ! 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,35 **** libs2n.a: ${OBJS} ar cru libs2n.a ${OBJS} ranlib libs2n.a libs2n.so: ${OBJS} ! ${CC} -shared ${LIBS} -o libs2n.so ${OBJS} libs2n.dylib: ${OBJS} test ! -f /usr/lib/libSystem.dylib || libtool -dynamic ${LIBS} -o libs2n.dylib ${OBJS} --- 26,38 ---- libs2n.a: ${OBJS} ar cru libs2n.a ${OBJS} ranlib libs2n.a + #libs2n.so: ${OBJS} + # ${CC} -shared ${LIBS} -o libs2n.so ${OBJS} + 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}