Commit fe8dca46 authored by Matti Picus's avatar Matti Picus
Browse files

revert 9dcb0815f970 - LDFLAGS should not define -shared (issue 3576)

--HG--
branch : release-pypy3.8-v7.x
parent cba36d82a3f8
Pipeline #27860 passed with stage
in 28 minutes and 47 seconds
......@@ -28,7 +28,6 @@ build_time_vars = {
'OPT': "-DNDEBUG -O2",
'CFLAGS': "-DNDEBUG -O2",
'CCSHARED': "-fPIC",
'LDFLAGS': "-pthread -shared",
'LDSHARED': "cc -pthread -shared",
'EXT_SUFFIX': so_ext,
'SHLIB_SUFFIX': ".so",
......@@ -67,8 +66,7 @@ if sys.platform[:6] == "darwin":
# Fix this if we ever get M1 support
arch = 'x86_64'
build_time_vars['CC'] += ' -arch %s' % (arch,)
build_time_vars['LDFLAGS'] = ' -shared -undefined dynamic_lookup'
build_time_vars['LDSHARED'] = build_time_vars['CC'] + build_time_vars['LDFLAGS']
build_time_vars['LDSHARED'] = build_time_vars['CC'] + ' -shared -undefined dynamic_lookup'
build_time_vars['LDLIBRARY'] = 'libpypy3-c.dylib'
if "CXX" in build_time_vars:
build_time_vars['CXX'] += ' -arch %s' % (arch,)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment