New submission from Simon Wells <swel...@gmail.com>:
if you didn't build python as a framework it adds sysconfig.get_config_vars('LINKFORSHARED') when you run 'python-config --ldflags' this resolves to >>> sysconfig.get_config_var('LINKFORSHARED') '-Wl,-stack_size,1000000 -framework CoreFoundation /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python' the '-Wl,-stack_size' ldflag causes issues for clang with the error "ld: -stack_size option can only be used when linking a main executable" ---------- components: macOS messages: 327545 nosy: ned.deily, ronaldoussoren, xzcvczx priority: normal severity: normal status: open title: python-config bad ldflags on macOS type: behavior versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34960> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com