Skip to content

Commit

Permalink
bypass _FORTIFY_SOURCE=3
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jan 15, 2025
1 parent ea36f8d commit c2d1faa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def readlists(name, prefix):

'_CPPLIB_VER',
'_LIBCPP_VERSION',

'_FORTIFY_SOURCE',
], headers=['string'], language='c++')
cxxdefs = []
if toolchain_macros.get('__GNUC__') is not None:
Expand All @@ -422,6 +424,9 @@ def readlists(name, prefix):
cxxabi = toolchain_macros.get('_GLIBCXX_USE_CXX11_ABI') or '0'
cxxdefs += [('_GLIBCXX_USE_CXX11_ABI', cxxabi)]

if toolchain_macros.get('_FORTIFY_SOURCE') not in (None, '0', '1', '2'):
print('bypass _FORTIFY_SOURCE=3')
cxxdefs += [('__FORTIFY_SOURCE',), ('_FORTIFY_SOURCE', '2')]

modules = []
headers = ['epicsVersion.h']
Expand Down

0 comments on commit c2d1faa

Please sign in to comment.