Skip to content

Commit

Permalink
Only use -g1 for --enable-stacktraces
Browse files Browse the repository at this point in the history
-g3 seems to produce too large binaries, overloading the linker.
  • Loading branch information
codablock committed Jan 11, 2019
1 parent f220559 commit a677be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ elif test "x$enable_stacktraces" = xyes; then
# Enable debug information but don't turn off optimization
# (stacktraces will be suboptimal, but better than nothing)
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -g3 -fno-omit-frame-pointer"
CFLAGS="$CFLAGS -g1 -fno-omit-frame-pointer"
fi

if test "x$GXX" = xyes; then
CXXFLAGS="$CXXFLAGS -g3 -fno-omit-frame-pointer"
CXXFLAGS="$CXXFLAGS -g1 -fno-omit-frame-pointer"
fi
fi

Expand Down

0 comments on commit a677be1

Please sign in to comment.