]> git.zarvox.org Git - crbtree.git/commitdiff
build: work around autoconf magic
authorKay Sievers <kay@vrfy.org>
Tue, 29 Mar 2016 17:16:10 +0000 (19:16 +0200)
committerKay Sievers <kay@vrfy.org>
Tue, 29 Mar 2016 18:17:01 +0000 (20:17 +0200)
configure.ac

index 24a453a643bc57bd7b5fc07ae3992fc418ac8875..29144006d693b0b007c35c9a0e74553c9ef33e9a 100644 (file)
@@ -16,6 +16,9 @@ AC_CONFIG_MACRO_DIR([build/m4])
 AC_CONFIG_HEADERS([build/config.h])
 AC_CONFIG_AUX_DIR([build/build-aux])
 
+# AC_PROG_CC sets default CFLAGS which conflict with our own configuration
+CFLAGS_SAVE=$CFLAGS
+
 AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
 AM_MAINTAINER_MODE([enable])
@@ -27,7 +30,8 @@ AC_PROG_CC_C99
 AC_PROG_RANLIB
 AC_PROG_SED
 
-AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
+CFLAGS=$CFLAGS_SAVE
+
 m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
 
 # ------------------------------------------------------------------------------
@@ -47,7 +51,7 @@ OUR_CFLAGS=${OUR_CFLAGS:-$(echo \
         -fdata-sections \
         -fstack-protector \
         -fstack-protector-strong \
-        -fPIE \
+        -fPIC \
         --param=ssp-buffer-size=4 \
         -Wall \
         -Wextra \