Change to how strlcpy and strlcat are handled

Put strlcpy and strlcat object files back in the source group in lib.
Moved libfko_util.a to the common directory (though sources remain in
lib).  Client and server code looks to common dir for libfko-util.
This fixes issue with strlcpy showing as undefined symbol when perl FKO
module is loaded.
This commit is contained in:
Damien Stuart
2013-01-13 22:16:30 -05:00
parent 10c19063df
commit b7b4e857be
4 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ fwknop_SOURCES = fwknop.c fwknop.h config_init.c config_init.h \
fwknop_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common
fwknop_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/lib/libfko_util.a
fwknop_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a
dist_man_MANS = fwknop.8
+6
View File
@@ -1 +1,7 @@
libfko_util_source_files = ../lib/strlcpy.c ../lib/strlcat.c ../lib/fko_util.h
libfko_util_a_SOURCES = $(libfko_util_source_files)
libfko_util_a_LIBADD =
noinst_LIBRARIES = libfko_util.a
EXTRA_DIST = common.h netinet_common.h
+1 -10
View File
@@ -8,20 +8,11 @@ libfko_source_files = \
fko.h fko_limits.h fko_timestamp.c fko_user.c fko_user.h \
md5.c md5.h rijndael.c rijndael.h sha1.c sha1.h sha2.c sha2.h \
fko_context.h fko_state.h fko_context.h gpgme_funcs.c \
gpgme_funcs.h
gpgme_funcs.h strlcpy.c strlcat.c fko_util.h
libfko_la_SOURCES = $(libfko_source_files)
libfko_la_LIBADD =
libfko_la_DEPENDENCIES = strlcpy.lo strlcat.lo
libfko_la_LDFLAGS = -version-info 1:0:0 $(GPGME_LIBS) -export-symbols-regex '^fko_'
libfko_util_source_files = strlcpy.c strlcat.c fko_util.h
libfko_util_a_SOURCES = $(libfko_util_source_files)
libfko_util_a_LIBADD =
libfko_util_a_DEPENDENCIES = strlcpy.lo strlcat.lo
noinst_LIBRARIES = libfko_util.a
AM_CPPFLAGS = $(GPGME_CFLAGS) -I $(top_srcdir)/common
include_HEADERS = fko.h
+1 -1
View File
@@ -12,7 +12,7 @@ fwknopd_SOURCES = fwknopd.c fwknopd.h config_init.c config_init.h \
fw_util_ipfw.c fw_util_ipfw.h \
fw_util_pf.c fw_util_pf.h cmd_opts.h
fwknopd_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/lib/libfko_util.a -lpcap
fwknopd_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a -lpcap
if ! CONFIG_FILE_CACHE
if USE_NDBM