From 0008195f1bae27c94186725920be9fe9bc40ed3f Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Fri, 8 Dec 2023 12:16:48 -0800 Subject: [PATCH] Add fPIC --- ChangeLog | 8 ++++++-- configure.ac | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index cd821f8..da8c50e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ 2023-12-08 Daryl Ronningen - * Updated argp to glibc 2.38 - * configure.ac: Bumped version to 1.6.0. + * Add fPIC to cflags + +2023-12-08 Daryl Ronningen + + * Updated argp to glibc 2.38 + * configure.ac: Bumped version to 1.6.0. 2021-02-10 Érico Nogueira diff --git a/configure.ac b/configure.ac index 09c8d51..d491196 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ dnl This configure.ac is only for building a standalone argp library. AC_PREREQ([2.71]) AC_INIT AC_CONFIG_SRCDIR([argp-ba.c]) -AM_INIT_AUTOMAKE(argp, standalone-1.6.0) +AM_INIT_AUTOMAKE(argp, standalone-1.6.1) AM_CONFIG_HEADER(config.h) # GNU libc defaults to supplying the ISO C library functions only. The @@ -95,7 +95,7 @@ if test x$GCC = xyes ; then CFLAGS="$CFLAGS -Wall -W \ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \ -Waggregate-return \ - -Wpointer-arith -Wbad-function-cast -Wnested-externs" + -Wpointer-arith -Wbad-function-cast -Wnested-externs -fPIC" fi CPPFLAGS="$CPPFLAGS -I$srcdir"