build: Disable modification of global LIBS variable and explicitly specify library's CFLAGS, LDFLAGS, and LIBS variables
Change-Id: Iaf7dbffa993bb03c32cf76619ac684d7f0acd044
diff --git a/Makefile.am b/Makefile.am
index f191f26..d14b0b8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,6 +68,10 @@
src/c/util/time.c \
src/c/util/time.h
+libndn_c_la_LIBADD = @OPENSSL_LIBS@
+libndn_c_la_LDFLAGS = @OPENSSL_LDFLAGS@
+libndn_c_la_CFLAGS = @OPENSSL_INCLUDES@
+
# C++ code and also the C code.
## To regenerate:
## for i in `find src -name '*.cpp' -or -name '*.hpp' -or -name '*.h' -and -not -path 'src/c/*'`; do echo " $i \\"; done
@@ -135,4 +139,8 @@
src/util/logging.cpp \
src/util/logging.hpp
+libndn_cpp_la_LIBADD = @OPENSSL_LIBS@ @OSX_SECURITY_LIBS@
+libndn_cpp_la_LDFLAGS = @OPENSSL_LDFLAGS@ @SQLITE3_LDFLAGS@ @BOOST_LDFLAGS@
+libndn_cpp_la_CFLAGS = @OPENSSL_INCLUDES@ @SQLITE3_CFLAGS@ @BOOST_CPPFLAGS@
+
dist_noinst_SCRIPTS = autogen.sh