Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ae6497d0
Unverified
Commit
ae6497d0
authored
Mar 12, 2019
by
Stéphane Graber
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2907 from brauner/2019-03-12/asan_support
hardening: enable address sanitizer build
parents
45265bfd
565c4427
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
configure.ac
configure.ac
+7
-0
Makefile.am
src/lxc/Makefile.am
+4
-0
No files found.
configure.ac
View file @
ae6497d0
...
@@ -428,6 +428,12 @@ AC_ARG_ENABLE([commands],
...
@@ -428,6 +428,12 @@ AC_ARG_ENABLE([commands],
[], [enable_commands=yes])
[], [enable_commands=yes])
AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"])
AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"])
# Build with ASAN commands
AC_ARG_ENABLE([asan],
[AC_HELP_STRING([--enable-asan], [build with address sanitizer enabled [default=no]])],
[], [enable_asan=no])
AM_CONDITIONAL([ENABLE_ASAN], [test "x$enable_asan" = "xyes"])
# Optional test binaries
# Optional test binaries
AC_ARG_ENABLE([tests],
AC_ARG_ENABLE([tests],
[AC_HELP_STRING([--enable-tests], [build test/example binaries [default=no]])],
[AC_HELP_STRING([--enable-tests], [build test/example binaries [default=no]])],
...
@@ -1001,6 +1007,7 @@ Documentation:
...
@@ -1001,6 +1007,7 @@ Documentation:
Debugging:
Debugging:
- tests: $enable_tests
- tests: $enable_tests
- ASAN: $enable_asan
- mutex debugging: $enable_mutex_debugging
- mutex debugging: $enable_mutex_debugging
Paths:
Paths:
...
...
src/lxc/Makefile.am
View file @
ae6497d0
...
@@ -235,6 +235,10 @@ liblxc_la_CFLAGS = -fPIC \
...
@@ -235,6 +235,10 @@ liblxc_la_CFLAGS = -fPIC \
-DPIC
\
-DPIC
\
$(AM_CFLAGS)
\
$(AM_CFLAGS)
\
-pthread
-pthread
if
ENABLE_ASAN
liblxc_la_CFLAGS
+=
-fsanitize
=
address
\
-fno-omit-frame-pointer
endif
liblxc_la_LDFLAGS
=
-pthread
\
liblxc_la_LDFLAGS
=
-pthread
\
-Wl
,-no-undefined
\
-Wl
,-no-undefined
\
...
...
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