Skip to content

Commit

Permalink
build: disable _FORTIFY_SOURCE
Browse files Browse the repository at this point in the history
_FORTIFY_SOURCE complains about false positives in our thread implementation
due to longjmp()s.  Disable it.
  • Loading branch information
avikivity committed Jun 18, 2015
1 parent 4399aab commit 3d75bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ def have_hwloc():
configure_args = {configure_args}
builddir = {outdir}
cxx = {cxx}
cxxflags = -std=gnu++1y {dbgflag} {fpie} -Wall -Werror -fvisibility=hidden -pthread -I. {user_cflags} {warnings} {defines}
# we disable _FORTIFY_SOURCE because it generates false positives with longjmp() (core/thread.cc)
cxxflags = -std=gnu++1y {dbgflag} {fpie} -Wall -Werror -fvisibility=hidden -pthread -I. -U_UNFORTIFY_SOURCE {user_cflags} {warnings} {defines}
ldflags = {dbgflag} -Wl,--no-as-needed {static} {pie} -fvisibility=hidden -pthread {user_ldflags}
libs = {libs}
pool link_pool
Expand Down

0 comments on commit 3d75bab

Please sign in to comment.