diff --git a/configure.py b/configure.py index 733632c79f8..2d375d56eb8 100755 --- a/configure.py +++ b/configure.py @@ -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