From c05956010c5b5517f5cbb39c2c7ad7f20ca0c1df Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 3 Nov 2019 15:53:36 +0100 Subject: [PATCH] Make sure libsyslog.la, incl. strlcpy.o, is built with -fPIC Signed-off-by: Joachim Nilsson --- configure.ac | 4 ++-- lib/.gitignore | 1 + src/Makefile.am | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ac4a704..4d1ee15 100644 --- a/configure.ac +++ b/configure.ac @@ -18,8 +18,8 @@ AC_INIT([sysklogd], [2.0-beta1], [https://github.com/troglobit/sysklogd/issues],, [https://github.com/troglobit/sysklogd]) -AM_INIT_AUTOMAKE([1.11 foreign]) -LT_INIT +AM_INIT_AUTOMAKE([1.11 foreign subdir-objects]) +LT_INIT([pic-only]) AM_SILENT_RULES([yes]) AC_CONFIG_SRCDIR([src/syslogd.c]) diff --git a/lib/.gitignore b/lib/.gitignore index 824d581..23edac5 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -1,2 +1,3 @@ *.o +*.lo .dirstamp diff --git a/src/Makefile.am b/src/Makefile.am index ae1db65..4ec1cd9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AUTOMAKE_OPTIONS = subdir-objects bin_PROGRAMS = logger sbin_PROGRAMS = syslogd klogd @@ -46,4 +45,5 @@ pkgconfig_DATA = libsyslog.pc pkginclude_HEADERS = syslog.h libsyslog_la_SOURCES = syslog.c syslog.h libsyslog_la_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600 +libsyslog_la_LIBADD = $(LTLIBOBJS) libsyslog_la_LDFLAGS = $(AM_LDFLAGS) -version-info 0:0:0