Skip to content

Commit

Permalink
Merge pull request #1618 from jpalus/libtool-libcrun_testing
Browse files Browse the repository at this point in the history
build: use libtool to create libcrun_testing
  • Loading branch information
giuseppe authored Dec 9, 2024
2 parents b3f8bab + 6b2e619 commit ae05b08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
noinst_LTLIBRARIES = libcrun.la
endif

check_LIBRARIES = libcrun_testing.a
check_LTLIBRARIES = libcrun_testing.la

libcrun_SOURCES = src/libcrun/utils.c \
src/libcrun/blake3/blake3.c \
Expand Down Expand Up @@ -84,9 +84,9 @@ libcrun_la_LIBADD = libocispec/libocispec.la $(FOUND_LIBS) $(maybe_libyajl.la)
libcrun_la_LDFLAGS = -Wl,--version-script=$(abs_top_srcdir)/libcrun.lds

# build a version with all the symbols visible for testing
libcrun_testing_a_SOURCES = $(libcrun_SOURCES)
libcrun_testing_a_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src -fvisibility=default
libcrun_testing_a_LIBADD = libocispec/libocispec.la $(maybe_libyajl.la)
libcrun_testing_la_SOURCES = $(libcrun_SOURCES)
libcrun_testing_la_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src -fvisibility=default
libcrun_testing_la_LIBADD = libocispec/libocispec.la $(maybe_libyajl.la)

if PYTHON_BINDINGS
pyexec_LTLIBRARIES = python_crun.la
Expand Down Expand Up @@ -170,7 +170,7 @@ endif

noinst_PROGRAMS += tests/init $(UNIT_TESTS) tests/tests_libcrun_fuzzer

TESTS_LDADD = libcrun_testing.a $(FOUND_LIBS) $(maybe_libyajl.la)
TESTS_LDADD = libcrun_testing.la $(FOUND_LIBS) $(maybe_libyajl.la)

tests_init_LDADD =
tests_init_LDFLAGS = -static-libgcc -all-static
Expand Down

0 comments on commit ae05b08

Please sign in to comment.