bind9/lib/isccc/Makefile.am
Michał Kępień b60d7345ed Fix function overrides in unit tests on macOS
Since Mac OS X 10.1, Mach-O object files are by default built with a
so-called two-level namespace which prevents symbol lookups in BIND unit
tests that attempt to override the implementations of certain library
functions from working as intended.  This feature can be disabled by
passing the "-flat_namespace" flag to the linker.  Fix unit tests
affected by this issue on macOS by adding "-flat_namespace" to LDFLAGS
used for building all object files on that operating system (it is not
enough to only set that flag for the unit test executables).
2020-09-28 09:09:21 +02:00

45 lines
804 B
Makefile

include $(top_srcdir)/Makefile.top
lib_LTLIBRARIES = libisccc.la
libisccc_ladir = $(includedir)/isccc
libisccc_la_HEADERS = \
include/isccc/alist.h \
include/isccc/base64.h \
include/isccc/cc.h \
include/isccc/ccmsg.h \
include/isccc/events.h \
include/isccc/result.h \
include/isccc/sexpr.h \
include/isccc/symtab.h \
include/isccc/symtype.h \
include/isccc/types.h \
include/isccc/util.h
libisccc_la_SOURCES = \
$(libisccc_la_HEADERS) \
alist.c \
base64.c \
cc.c \
ccmsg.c \
result.c \
sexpr.c \
symtab.c
libisccc_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LIBISC_CFLAGS) \
$(LIBISCCC_CFLAGS)
libisccc_la_LIBADD = \
$(LIBISC_LIBS)
libisccc_la_LDFLAGS = \
$(AM_LDFLAGS) \
$(libisccc_VERSION_INFO)
if HAVE_CMOCKA
SUBDIRS = tests
endif
EXTRA_DIST = api