* configure.ac: Check gcc and g++ for -fvisibility and -fvisibility-inlines-hidden. Add these options to CFLAGS and CXXFLAGS. * m4/ax_check_compile_flag.m4: New file. * src/Makefile.am: Build BuDDy as a single library, reverting part of the changes introduced in my previous patch to this file. Since the options are set in CFLAGS/CXXFLAGS, there is no possibility for -fvisibility-inlines-hidden to be passed to the C compiler.
33 lines
657 B
Makefile
33 lines
657 B
Makefile
|
|
include_HEADERS = bdd.h fdd.h bvec.h
|
|
|
|
BUDDY_FLAGS = -I$(top_builddir) -DVERSION=23 -DBUDDY_DLL_EXPORTS -DBUDDY_DLL
|
|
|
|
lib_LTLIBRARIES = libbdd.la
|
|
# See the `Updating version info' node of the Libtool manual before
|
|
# changing this.
|
|
libbdd_la_LDFLAGS = -no-undefined -version-info 0:0:0
|
|
libbdd_la_CPPFLAGS = $(BUDDY_FLAGS)
|
|
libbdd_la_SOURCES = \
|
|
bddio.c \
|
|
bddop.c \
|
|
bddtree.h \
|
|
bvec.c \
|
|
cache.c \
|
|
cache.h \
|
|
cppext.cxx \
|
|
fdd.c \
|
|
imatrix.c \
|
|
imatrix.h \
|
|
kernel.c \
|
|
kernel.h \
|
|
pairs.c \
|
|
prime.c \
|
|
prime.h \
|
|
reorder.c \
|
|
tree.c
|
|
|
|
check_PROGRAMS = bddtest
|
|
bddtest_SOURCES = bddtest.cxx
|
|
bddtest_CPPFLAGS = -I$(top_builddir)
|
|
bddtest_LDADD = ./libbdd.la
|