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 <vapier@gentoo.org> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
0a4186212d
commit
2537d91514
1 file changed
-12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user