New submission from ux <bugs-python-ahmiu...@pkh.me>:

Hi,

Since 3.8 (included), the following build command fails:

    LDFLAGS=-headerpad_max_install_names ./configure
    make

With the following error:

    setup.py: error: argument -h/--help: ignored explicit argument 
'eaderpad_max_install_names'


A quick hack in setup.py "fixes" the issue:

-                options, _ = parser.parse_known_args(env_val.split())
+                options, _ = parser.parse_known_args([x for x in 
env_val.split() if not x.startswith('-h')])

Another workaround as a user is to do use 
`LDFLAGS=-Wl,-headerpad_max_install_names`.

----------
components: Build
messages: 401951
nosy: ux
priority: normal
severity: normal
status: open
title: Linker flags starting with -h breaks setup.py (regression)
type: compile error
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45221>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to