This patch was made against the master branch. It will apply with fuzz
against the perf-events branch, but then the pe_profiling/Makefile.am
file would need to be changed to use the @OP_CPPFLAGS@ and @OP_LDFLAGS@
similar to the other Makefile.am files altered by this patch (for example,
Can you please give it a test? Thanks.
+# save the contents of the original flags in case the user has set them
+# prior to running this configue script.
[ --with-binutils=dir Path to binutils installation to use], BINUTILSDIR=$withval)
if test "$BINUTILSDIR" != ""; then
- if test "$CFLAGS" = ""; then
- CFLAGS="-g -O2"
- if test "$CXXFLAGS" = ""; then
- CXXFLAGS="-g -O2"
- CFLAGS="$CFLAGS -I$BINUTILSDIR/include"
- CXXFLAGS="$CXXFLAGS -I$BINUTILSDIR/include"
+ CPPFLAGS="$CFLAGS -I$BINUTILSDIR/include"