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
a102c852
Commit
a102c852
authored
Apr 01, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure --enable-stack-protector works with C++ sources as well
parent
c341d11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
configure.ac
configure.ac
+8
-2
No files found.
configure.ac
View file @
a102c852
...
@@ -89,7 +89,7 @@ PKG_CHECK_MODULES([RE2], [re2])
...
@@ -89,7 +89,7 @@ PKG_CHECK_MODULES([RE2], [re2])
# df7a2dc in re2, the pointer may be NULL, if we just want to know
# df7a2dc in re2, the pointer may be NULL, if we just want to know
# whether there was a match. This check tests for that feature.
# whether there was a match. This check tests for that feature.
# Note: the test may cause a core dump if it fails.
# Note: the test may cause a core dump if it fails.
AC_LANG(C++)
AC_LANG
_PUSH
(C++)
SAVE_CXXFLAGS="$CXXFLAGS"
SAVE_CXXFLAGS="$CXXFLAGS"
SAVE_LDFLAGS="$LDFLAGS"
SAVE_LDFLAGS="$LDFLAGS"
CXXFLAGS+=" -std=c++11"
CXXFLAGS+=" -std=c++11"
...
@@ -109,7 +109,7 @@ main() {
...
@@ -109,7 +109,7 @@ main() {
)
)
CXXFLAGS="$SAVE_CXXFLAGS"
CXXFLAGS="$SAVE_CXXFLAGS"
LDFLAGS="$SAVE_LDFLAGS"
LDFLAGS="$SAVE_LDFLAGS"
AC_LANG
(C
)
AC_LANG
_POP(
)
# --enable-stack-protector
# --enable-stack-protector
AC_ARG_ENABLE(stack-protector,
AC_ARG_ENABLE(stack-protector,
...
@@ -122,6 +122,12 @@ if test "x$enable_stack_protector" != "xno"; then
...
@@ -122,6 +122,12 @@ if test "x$enable_stack_protector" != "xno"; then
AX_CHECK_LINK_FLAG([-fstack-protector],
AX_CHECK_LINK_FLAG([-fstack-protector],
[CFLAGS="${CFLAGS} -fstack-protector"], [], []),
[CFLAGS="${CFLAGS} -fstack-protector"], [], []),
[], [])
[], [])
AC_LANG_PUSH(C++)
AX_CHECK_COMPILE_FLAG([-fstack-protector],
AX_CHECK_LINK_FLAG([-fstack-protector],
[CXXFLAGS="${CXXFLAGS} -fstack-protector"], [], []),
[], [])
AC_LANG_POP()
fi
fi
# --enable-debugging
# --enable-debugging
...
...
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