Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
8c745226
Commit
8c745226
authored
1 year ago
by
Andreas Traczyk
Committed by
Adrien Béraud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
debug: allow easier enabling of ASAN for libjami and contrib builds
Change-Id: I0e142f271fa0db3c3d4af1e57919ef1f65beb8c2
parent
5028c30b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+10
-0
10 additions, 0 deletions
configure.ac
contrib/bootstrap
+7
-1
7 additions, 1 deletion
contrib/bootstrap
contrib/src/main.mak
+6
-0
6 additions, 0 deletions
contrib/src/main.mak
with
23 additions
and
1 deletion
configure.ac
+
10
−
0
View file @
8c745226
...
...
@@ -40,6 +40,16 @@ AS_IF([test "x$enable_debug" = "xyes"],
[DAEMONCFLAGS+=" -DNDEBUG=1 -O3"
DAEMONCXXFLAGS+=" -DNDEBUG=1 -O3 -Wno-deprecated"])
dnl Build using address sanitizer
AC_ARG_ENABLE([asan],
AS_HELP_STRING([--enable-asan],
[Enable address sanitization]))
AS_IF([test "x$enable_asan" = "xyes"],
[DAEMONCXXFLAGS+=" -fsanitize=address -fno-omit-frame-pointer"
DAEMONLDFLAGS+=" -fsanitize=address"
AC_MSG_NOTICE([WARNING: Address sanitization enabled for libjami])], [])
AC_ARG_ENABLE([fuzzing],
AS_HELP_STRING([--enable-fuzzing],
[Build fuzzing tools]))
...
...
This diff is collapsed.
Click to expand it.
contrib/bootstrap
+
7
−
1
View file @
8c745226
...
...
@@ -26,8 +26,9 @@ usage()
echo
" --prefix=PREFIX install files in PREFIX"
echo
" --no-checksums don't verify checksums (allows to replace tarballs)"
echo
" --disable-downloads don't download packages from the internet"
echo
'
--cache-dir=DIR the directory where contrib tarballs are cached
'
echo
"
--cache-dir=DIR the directory where contrib tarballs are cached
"
echo
" --enable-debug build with debug symbol and extra checks (disabled by default)"
echo
" --enable-asan build with address sanitizer (disabled by default)"
echo
" --disable-FOO configure to not build package FOO"
echo
" --enable-FOO configure to build package FOO"
}
...
...
@@ -39,6 +40,7 @@ PKGS_ENABLE=
PKGS_DISABLE
=
CACHE_BUILD
=
CONF_TARBALLS
=
ENABLE_ASAN
=
if
test
!
-f
"../src/main.mak"
then
...
...
@@ -72,6 +74,9 @@ do
--enable-debug
)
ENABLE_DEBUG
=
1
;;
--enable-asan
)
ENABLE_ASAN
=
1
;;
--host
=
*
)
HOST
=
"
${
1
#--host=
}
"
;;
...
...
@@ -136,6 +141,7 @@ CONF_TARBALLS := $CONF_TARBALLS
CACHE_DIR :=
$CACHE_DIR
CACHE_BUILD :=
$CACHE_BUILD
ENABLE_DEBUG :=
$ENABLE_DEBUG
ENABLE_ASAN :=
$ENABLE_ASAN
EOF
add_make
()
...
...
This diff is collapsed.
Click to expand it.
contrib/src/main.mak
+
6
−
0
View file @
8c745226
...
...
@@ -190,6 +190,12 @@ EXTRA_COMMON += -m32
endif
endif
ifdef
ENABLE_ASAN
$(info
Address
sanitization
enabled
for
contrib
builds)
EXTRA_COMMON
+=
-fsanitize
=
address
EXTRA_LDFLAGS
+=
-fsanitize
=
address
endif
ifdef
ENABLE_DEBUG
EXTRA_COMMON
+=
-g
-fno-omit-frame-pointer
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment