Skip to content

Commit cbc9640

Browse files
committed
Makefile.am: dynamic vs static
start using DYNAMIC in order to be aligned with the --enable-all-static argument.
1 parent 3d6032e commit cbc9640

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mlxsign_lib/Makefile.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ AM_CPPFLAGS = \
3838
AM_CXXFLAGS = -Wall -W -g -MP -MD -pipe $(COMPILER_FPIC)
3939
AM_CXXFLAGS += -DTOOLS_CRYPTO_KEY='$(TOOLS_CRYPTO_KEY)' -DTOOLS_CRYPTO_IV='$(TOOLS_CRYPTO_IV)'
4040

41+
if BUILD_DYNAMIC
42+
pkglib_LTLIBRARIES = libmlxsign.la
43+
libmlxsign_la_LDFLAGS = -version-info 0:0:0 -no-undefined
44+
else
4145
noinst_LTLIBRARIES = libmlxsign.la
46+
endif
47+
4248
libmlxsign_la_SOURCES = mlxsign_lib.cpp mlxsign_lib.h mlxsign_com_def.h \
4349
mlxsign_openssl_engine.h mlxsign_openssl_engine.cpp \
4450
mlxsign_signer_interface.h mlxsign_signer_interface.cpp

mtcr_ul/Makefile.am

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232

3333
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/dev_mgt
3434

35+
if BUILD_DYNAMIC
3536
pkglib_LTLIBRARIES = libmtcr_ul.la
37+
libmtcr_ul_la_LDFLAGS = -version-info 0:0:0 -no-undefined
38+
else
39+
noinst_LTLIBRARIES = libmtcr_ul.la
40+
endif
3641

3742
libmtcr_ul_la_SOURCES = mtcr_ul.c mtcr_ib.h mtcr_int_defs.h\
3843
mtcr_ib_res_mgt.h mtcr_ib_res_mgt.c\

0 commit comments

Comments
 (0)