Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-re2
Commits
dff55f05
Commit
dff55f05
authored
Apr 01, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure --enable-debugging works with C++ sources as well
parent
a102c852
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
configure.ac
configure.ac
+12
-4
No files found.
configure.ac
View file @
dff55f05
...
...
@@ -136,16 +136,24 @@ AC_ARG_ENABLE(debugging,
[],
[enable_debugging=no])
# AC_PROG_CC sets CFLAGS to '-g -O2' unless it is already set, so
# there's no need to add -g. Disable or change by explicitly setting
# CFLAGS. If this option is enabled, then -Og or -O0 becomes the last
# optimization option, and hence takes precedence.
# AC_PROG_CC and AC_PROG_CXX set CFLAGS and CXXFLAGS to '-g -O2'
# unless already set, so there's no need to add -g. Disable or change
# by explicitly setting CFLAGS and/or CXXFLAGS. If this option is
# enabled, then -Og or -O0 becomes the last optimization option, and
# hence takes precedence.
if test "x$enable_debugging" != "xno"; then
CFLAGS="${CFLAGS} -fno-inline"
AX_CHECK_COMPILE_FLAG([-Og],
[CFLAGS="${CFLAGS} -Og"],
[CFLAGS="${CFLAGS} -O0"],
[])
AC_LANG_PUSH(C++)
CXXFLAGS="${CXXFLAGS} -fno-inline"
AX_CHECK_COMPILE_FLAG([-Og],
[CXXFLAGS="${CXXFLAGS} -Og"],
[CXXFLAGS="${CXXFLAGS} -O0"],
[])
AC_LANG_POP()
fi
AC_CONFIG_FILES([
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment