From 63d4cfd6c4cb08497e5cc0d9fcda3d127359cf11 Mon Sep 17 00:00:00 2001 From: Peter Bushnell Date: Thu, 18 Jul 2019 19:13:52 +0100 Subject: [PATCH] Add fPIC to CFLAGS --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a8be7a8b73..b1fbfceb07 100644 --- a/configure.ac +++ b/configure.ac @@ -722,7 +722,7 @@ fi if test x$TARGET_OS != xwindows; then # All windows code is PIC, forcing it on just adds useless compile warnings - AX_CHECK_COMPILE_FLAG([-fPIC],[PIC_FLAGS="-fPIC"]) + AX_CHECK_COMPILE_FLAG([-fPIC],[PIC_FLAGS="-fPIC" && CFLAGS="$CFLAGS -fPIC"]) fi # All versions of gcc that we commonly use for building are subject to bug