Make sure libsyslog.la, incl. strlcpy.o, is built with -fPIC

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-03 15:53:36 +01:00
parent fe3066f4c2
commit c05956010c
3 changed files with 4 additions and 3 deletions

View File

@ -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])

1
lib/.gitignore vendored
View File

@ -1,2 +1,3 @@
*.o
*.lo
.dirstamp

View File

@ -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