Skip to content

Commit

Permalink
[cmake] Remove -ftlo flag from PY_CFLAGS
Browse files Browse the repository at this point in the history
Can lead to issues when linking for system libraries compiled with a different compiler version
  • Loading branch information
AlexReimann authored May 9, 2022
1 parent bee5efb commit ebb22e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ if (NOT Python3_NOT_FOUND AND NOT Numpy_NOT_FOUND AND PYTHONLIBS_FOUND AND BUILD
set(PY_VARS CFLAGS LDFLAGS LINKER EXT_SUFFIX)
cmake_parse_arguments(PY "" "${PY_VARS}" "" ${PY_OUT})
separate_arguments(PY_CFLAGS)
list(REMOVE_ITEM PY_CFLAGS -flto)
separate_arguments(PY_LDFLAGS)

foreach(X detect py_type)
Expand Down

0 comments on commit ebb22e8

Please sign in to comment.