Commit 191f6a91 authored by Jan Včelák's avatar Jan Včelák 🚀

dynamic linking of libknot and libzscanner

issue #1
parent 171d9aff
......@@ -339,8 +339,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread_np.h>]], [[cpuset_t set; CPU
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sched.h>]], [[cpuset_t* set = cpuset_create(); cpuset_destroy(set);]])],
[AC_DEFINE(HAVE_CPUSET_NETBSD, 1, [Define if cpuset_t and cpuset(3) exists.])])
gl_VISIBILITY()
CFLAGS="$CFLAGS $CFLAG_VISIBILITY"
# Use -fvisibility=hidden when linking.
# Let's leave it default now and use -export-symbols-regex in LDFLAGS
#gl_VISIBILITY()
#CFLAGS="$CFLAGS $CFLAG_VISIBILITY"
AC_CONFIG_FILES([Makefile
doc/Makefile
......
This diff is collapsed.
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
AM_CFLAGS = -I$(top_srcdir)/src
noinst_LTLIBRARIES = libzscanner.la
lib_LTLIBRARIES = libzscanner.la
EXTRA_DIST = \
scanner.rl \
......@@ -41,6 +41,8 @@ libzscanner_la_SOURCES = \
scanner_functions.h \
scanner_functions.c
libzscanner_la_LIBADD = @LIBOBJS@
libzscanner_la_LDFLAGS = \
-version-info 0:1:0 \
-export-symbols-regex '^(zscanner|scanner|file_loader)_|^date_to_timestamp'
include $(srcdir)/tests/Makefile.inc
......@@ -33,7 +33,7 @@ tests_zscanner_tool_SOURCES = \
tests/processing.h \
tests/processing.c
tests_zscanner_tool_LDADD = libzscanner.la @LIBOBJS@
tests_zscanner_tool_LDADD = libzscanner.la ../libknots.la
EXTRA_DIST += \
tests/TESTS \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment