You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
makesetup can fail on macOS and uses wrong CFLAGS #94404
It uses sed i command with multiple escapes newlines. The feature works fine in GNU sed but does not work correctly with macOS' BSD sed. @ned-deily found a workaround for the problem. The r command with an external replacement file works correctly on GNU and BSD sed.
makesetup creates wrong compile rules for object files that end up in a shared library. The variables $(CCSHARED) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) are missing some flags like address sanitizer. The script should create rules with $(PY_STDMODULE_CFLAGS) $(CCSHARED) instead.
the order of cflags can break builds. For example macOS ARM64 builds are broken because -I./Modules/_decimal/libmpdec comes after -I/opt/homebrew/include and the buildbot seems to come with an incompatible libmpdec header. Module-specific CFLAGs should come before Python CFLAGs. It is probably easier to move module CFLAGS before PY_STDMODULE_CFLAGS. The homebrew flag comes from PY_CPPFLAGS and CONFIGURE_CPPFLAGS.
Activity
pythongh-94404: makesetup: use correct CFLAGS and macOS workaround
gh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)
pythongh-94404: makesetup: use correct CFLAGS and macOS workaround (p…
gh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)
pythongh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS
gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413)
[3.11] pythongh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (p…
[3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413…
pythongh-94404: makesetup: use correct CFLAGS and macOS workaround (p…
pythongh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (pythonG…