I’m very new to autotools and it looks like I have a problem with libtool – it doesn’t build a shared library and makes a static one instead…
This is how my configure.ac looks like:
AC_PREREQ([2.67])
AC_INIT([helloworld], [1.0], [...])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
# Checks for programs.
AC_PROG_CXX
AC_PROG_LIBTOOL
# Checks for header files.
AC_CHECK_HEADERS([alloca.h inttypes.h stdint.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
and Makefile.am:
noinst_LTLIBRARIES=helloworld.la
helloworld_la_CXXFLAGS=-w -DLINUX ...
helloworld_la_LDFLAGS=-avoid-version -module -shared -export-dynamic
# List of source files
helloworld_la_SOURCES=helloworld.cpp ...
Is there something wrong here?
Thanks for any help.
I believe you want
Using noinst instructs libtool to build a convenience library, and those
are not typically shared.