From b35c8ee3a0aa30abdd000eb97f33e7969715e3d5 Mon Sep 17 00:00:00 2001 From: Elear Solutions Dev Date: Sun, 2 Sep 2018 21:32:25 +0530 Subject: [PATCH] added -fPIC for static library generation --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index b60a754..e346114 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,8 @@ AC_CHECK_DECLS([_finite], [], [], [[#include ]]) if test "$ac_cv_have_decl_isnan" = "yes" ; then AC_TRY_LINK([#include ], [float f = 0.0; return isnan(f)], [], [LIBS="$LIBS -lm"]) fi +CPPFLAGS="$CPPFLAGS -fPIC" + #check if .section.gnu.warning accepts long strings (for __warn_references) AC_LANG_PUSH([C])