Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better fix for when CFLAGS includes -D_FORTIFY_SOURCE #226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ is_mingw = cc.get_id()=='gcc' and host_machine.system()=='windows'
# Set preprocessor macros
# Disable .c line numbers in exception tracebacks
add_project_arguments('-DCYTHON_CLINE_IN_TRACEBACK=0', language: 'c')
# Disable sanity checking in GNU libc
# This is required because of false positives in the longjmp() check
add_project_arguments('-U_FORTIFY_SOURCE', language: 'c')

# Platform-specific settings
if is_cygwin
Expand Down
5 changes: 4 additions & 1 deletion src/cysignals/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ foreach name, pyx : extensions
cython_args: ['-Wextra'],
dependencies: [py_dep, threads_dep],
install: true,
subdir: 'cysignals'
subdir: 'cysignals',
# Disable sanity checking in GNU libc
# This is required because of false positives in the longjmp() check
c_args: name == 'signals' ? ['-U_FORTIFY_SOURCE'] : [],
)
endforeach
Loading