summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-01-21 23:23:51 +0100
committerMark Wielaard <mjw@redhat.com>2009-01-21 23:23:51 +0100
commit5574ef2ce9549c89f91e9c8dccc41fc0e85a74d6 (patch)
tree055a41f5dc7fe17314721aed3537392608bdbda0 /configure.ac
parent920ca5a654c7502efb64c355359e1fdeb5a13a13 (diff)
downloadsystemtap-steved-5574ef2ce9549c89f91e9c8dccc41fc0e85a74d6.tar.gz
systemtap-steved-5574ef2ce9549c89f91e9c8dccc41fc0e85a74d6.tar.xz
systemtap-steved-5574ef2ce9549c89f91e9c8dccc41fc0e85a74d6.zip
Create PIECFLAGS and PIECXXFLAGS, like PIELDFLAGS.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dd0e40eb..fb931319 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,15 +94,23 @@ AS_IF([test "x$enable_pie" != xno],[
AC_MSG_NOTICE([Compiling with gcc pie et al.])
# LDFLAGS is special since it may be passed down to bundled-elfutils,
# and interfere with the .so's built therein
- PIELDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
+ PIELDFLAGS="$LDFLAGS"
LDFLAGS="$save_LDFLAGS"
+ PIECFLAGS="$CFLAGS"
+ CFLAGS="$save_CFLAGS"
+ PIECXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$save_CXXFLAGS"
],[
AC_MSG_NOTICE([Compiler does not support -pie et al.])
+ PIECFLAGS=""
CFLAGS="$save_CFLAGS"
+ PIECXXFLAGS=""
CXXFLAGS="$save_CXXFLAGS"
PIELDFLAGS=""
LDFLAGS="$save_LDFLAGS"])])
AC_SUBST(PIELDFLAGS)
+AC_SUBST(PIECFLAGS)
+AC_SUBST(PIECXXFLAGS)
dnl Handle optional sqlite support. If enabled/disabled by the user,
dnl do the right thing. If not specified by the user, use it if