diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-05-07 13:10:32 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-07 13:10:32 -0400 |
commit | 9204dcfbe16061f799068eeacff5dc68ad33e523 (patch) | |
tree | d0b0d6b9a850527b6ddf756de8846023933a4f18 /configure.ac | |
parent | 49628242c239feb617b838bb5d90488386645bd6 (diff) | |
parent | 12603f28dc1abdfdff43c53b939ebb528382512e (diff) | |
download | systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.tar.gz systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.tar.xz systemtap-steved-9204dcfbe16061f799068eeacff5dc68ad33e523.zip |
Merge branch 'master' into pr6429-comp-unwindsyms
* master:
PR444886: add .../build/... to default debuginfo search path
More signal cleanup.
Fix problem handling SIG_CHLD
Cleanup signal handling for staprun.
PR6481: timer reset needs irqs reenabled
Made runtime/task_finder.c improvements.
PR6474: use position-independent-executable security c/ld-flags for stap* binaries
2008-05-01 William Cohen <wcohen@redhat.com>
add git commit summary guidelines
PR5648: Fix unaligned access warning on ia64.
PR6008: Increase the limitation of the buffer size to 4095MB.
PR5645: Fix sub-buffer size calculation and debug messages.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 51ed83a7..4d0a4263 100644 --- a/configure.ac +++ b/configure.ac @@ -81,6 +81,29 @@ AS_IF([test "x$enable_ssp" != xno],[ CFLAGS="$save_CFLAGS" CXXFLAGS="$save_CXXFLAGS"])]) +AC_ARG_ENABLE([pie], + [AS_HELP_STRING([--disable-pie], [disable position-independent-executable])]) +AS_IF([test "x$enable_pie" != xno],[ + save_CFLAGS="$CFLAGS" + save_CXXFLAGS="$CXXFLAGS" + save_LDFLAGS="$LDFLAGS" + CFLAGS="$CFLAGS -fpie" + CXXFLAGS="$CXXFLAGS -fpie" + LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" + AC_LINK_IFELSE([void main () {}], [ + 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" + LDFLAGS="$save_LDFLAGS" + ],[ + AC_MSG_NOTICE([Compiler does not support -pie et al.]) + CFLAGS="$save_CFLAGS" + CXXFLAGS="$save_CXXFLAGS" + PIELDFLAGS="" + LDFLAGS="$save_LDFLAGS"])]) +AC_SUBST(PIELDFLAGS) + 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 dnl present. |