File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
graalpython/lib-graalpython Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,18 +102,18 @@ def _get_posix_vars():
102
102
g ['CFLAGS' ] = ' ' .join (cflags_default + [gnu_source ])
103
103
g ['LDFLAGS' ] = ""
104
104
g ['CCSHARED' ] = fpic
105
- g ['LDSHARED_LINUX' ] = "%s -shared %s" % (get_toolchain ('CC' ), fpic )
106
105
if darwin_native :
107
- g ['LDSHARED' ] = get_toolchain ('CC' ) + " -bundle -undefined dynamic_lookup"
108
106
g ['LDFLAGS' ] = "-bundle -undefined dynamic_lookup"
107
+ ldshared_common = g ['LDFLAGS' ]
109
108
g ['LIBPYTHON' ] = ''
110
109
elif win32_native :
111
110
g ['LDFLAGS' ] = f"-L{ __graalpython__ .capi_home .replace (os .path .sep , '/' )} "
112
- g ['LDSHARED_WINDOWS' ] = f"{ g ['LDSHARED_LINUX' ]} { g ['LDFLAGS' ]} "
113
- g ['LDSHARED' ] = g ['LDSHARED_WINDOWS' ]
111
+ ldshared_common = f"-shared { fpic } { g ['LDFLAGS' ]} "
114
112
else :
115
- g [ 'LDSHARED' ] = g [ 'LDSHARED_LINUX' ]
113
+ ldshared_common = f"-shared { fpic } "
116
114
g ['LIBPYTHON' ] = ''
115
+ g ['LDSHARED' ] = f"{ g ['CC' ]} { ldshared_common } "
116
+ g ['LDCXXSHARED' ] = f"{ g ['CXX' ]} { ldshared_common } "
117
117
g ['SOABI' ] = so_abi
118
118
g ['EXT_SUFFIX' ] = "." + so_abi + so_ext
119
119
g ['SHLIB_SUFFIX' ] = so_ext
You can’t perform that action at this time.
0 commit comments