diff --git a/NetSSL_OpenSSL/samples/Mail/Makefile b/NetSSL_OpenSSL/samples/Mail/Makefile index 1ded0e760..8ca4344ed 100644 --- a/NetSSL_OpenSSL/samples/Mail/Makefile +++ b/NetSSL_OpenSSL/samples/Mail/Makefile @@ -19,6 +19,6 @@ objects = Mail target = Mail target_version = 1 -target_libs = PocoNetSSL PocoNet PocoCrypto PocoUtil PocoXML PocoFoundation +target_libs = PocoNetSSL PocoNet PocoCrypto PocoUtil PocoJSON PocoXML PocoFoundation include $(POCO_BASE)/build/rules/exec diff --git a/NetSSL_OpenSSL/samples/TwitterClient/Makefile b/NetSSL_OpenSSL/samples/TwitterClient/Makefile index 7983a95b3..3b49cbd13 100644 --- a/NetSSL_OpenSSL/samples/TwitterClient/Makefile +++ b/NetSSL_OpenSSL/samples/TwitterClient/Makefile @@ -8,11 +8,18 @@ include $(POCO_BASE)/build/rules/global +# Note: linking order is important, do not change it. +ifeq ($(POCO_CONFIG),FreeBSD) +SYSLIBS += -lssl -lcrypto -lz +else +SYSLIBS += -lssl -lcrypto -lz -ldl +endif + objects = Twitter TweetApp target = tweet target_version = 1 -target_libs = PocoUtil PocoJSON PocoNetSSL PocoCrypto PocoNet PocoXML PocoFoundation +target_libs = PocoNetSSL PocoCrypto PocoNet PocoUtil PocoJSON PocoXML PocoFoundation include $(POCO_BASE)/build/rules/exec diff --git a/NetSSL_OpenSSL/samples/download/Makefile b/NetSSL_OpenSSL/samples/download/Makefile index 49b0ec507..8f18aef9a 100644 --- a/NetSSL_OpenSSL/samples/download/Makefile +++ b/NetSSL_OpenSSL/samples/download/Makefile @@ -19,6 +19,6 @@ objects = download target = download target_version = 1 -target_libs = PocoNetSSL PocoCrypto PocoNet PocoUtil PocoXML PocoFoundation +target_libs = PocoNetSSL PocoCrypto PocoNet PocoUtil PocoJSON PocoXML PocoFoundation include $(POCO_BASE)/build/rules/exec diff --git a/NetSSL_OpenSSL/testsuite/Makefile b/NetSSL_OpenSSL/testsuite/Makefile index 496d15aae..7c425aec0 100644 --- a/NetSSL_OpenSSL/testsuite/Makefile +++ b/NetSSL_OpenSSL/testsuite/Makefile @@ -21,6 +21,6 @@ objects = NetSSLTestSuite Driver \ target = testrunner target_version = 1 -target_libs = PocoNetSSL PocoNet PocoCrypto PocoUtil PocoXML PocoFoundation CppUnit +target_libs = PocoNetSSL PocoNet PocoCrypto PocoUtil PocoJSON PocoXML PocoFoundation CppUnit include $(POCO_BASE)/build/rules/exec