From 2537d91514fb1750d751a8e99170dcde153252e4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 19 Oct 2012 01:49:09 -0400 Subject: [PATCH] drop -fPIC usage We don't create any libraries so there's no need to build with -fPIC. Drop it all. Signed-off-by: Mike Frysinger Signed-off-by: Jeff Mahoney --- configure.ac | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/configure.ac b/configure.ac index 3822163..50e42f3 100644 --- a/configure.ac +++ b/configure.ac @@ -50,14 +50,6 @@ AC_ARG_ENABLE(debug, [ --enable-debug enable extra checks], enable_debug=no ) -dnl Check for the compiler pic option. -AC_CACHE_CHECK([whether -fPIC works], [pic], [ - saved_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="-fPIC -DPIC" - AC_TRY_COMPILE(, , [pic=yes], [pic=no]) - CPPFLAGS="$saved_CPPFLAGS" -]) - # Checking for compiler warning options AC_CACHE_CHECK([whether -Wuninitialized works], [uninitialized], [ saved_CPPFLAGS="$CPPFLAGS" @@ -149,10 +141,6 @@ else fi fi -if test x$pic = xyes; then - CFLAGS="$CFLAGS -fPIC -DPIC" -fi - AC_OUTPUT( include/Makefile mkreiserfs/Makefile