Lines Matching +full:linux +full:- +full:format
15 Linux = 'linux' variable in Host
20 if sys.platform.startswith('linux'):
21 return Host.Linux
25 raise RuntimeError('Unsupported host: {}'.format(sys.platform))
31 print('## Build Dir : {}'.format(build_dir))
32 print('## Install Dir : {}'.format(install_dir))
33 print('## Python Src : {}'.format(python_src))
39 cflags = ['-Wno-unused-command-line-argument']
40 ldflags = ['-s']
43 '--prefix={}'.format(install_dir),
44 '--enable-shared',
45 '--with-ensurepip=install',
51 print("Using SDK {}".format(sdkroot))
52 config_cmd.append('--enable-universalsdk={}'.format(sdkroot))
54 config_cmd.append('--enable-universalsdk')
55 config_cmd.append('--with-universal-archs=universal2')
58 cflags.append('-mmacosx-version-min={}'.format(MAC_MIN_VERSION))
59 cflags.append('-DMACOSX_DEPLOYMENT_TARGET={}'.format(MAC_MIN_VERSION))
60 cflags.extend(['-arch', 'arm64'])
61 cflags.extend(['-arch', 'x86_64'])
63 ldflags.append("-Wl,-rpath,'@loader_path/../lib'")
67 cflags.append('-Werror=unguarded-availability')
69 # configure doesn't find it because of the unguarded-availability error
70 # combined with and older -mmacosx-version-min
71 cflags.append('-DHAVE_DYLD_SHARED_CACHE_CONTAINS_PATH=1')
72 elif host == Host.Linux:
73 # Quoting for -Wl,-rpath,$ORIGIN:
74 # - To link some binaries, make passes -Wl,-rpath,\$ORIGIN to shell.
75 # - To build stdlib extension modules, make invokes:
76 # setup.py LDSHARED='... -Wl,-rpath,\$ORIGIN ...'
77 # - distutils.util.split_quoted then splits LDSHARED into
78 # [... "-Wl,-rpath,$ORIGIN", ...].
79 ldflags.append("-Wl,-rpath,\\$$ORIGIN/../lib")
83 ldflags.append('-Wl,--as-needed')
85 config_cmd.append('CFLAGS={}'.format(' '.join(cflags)))
86 config_cmd.append('LDFLAGS={}'.format(' '.join(cflags + ldflags + [extra_ldflags])))
93 # Since configure does not give us a chance to set -install_name, we have
97 '-j{}'.format(multiprocessing.cpu_count()),
100 subprocess.check_call(['install_name_tool', '-id', '@rpath/' + libpython,
104 '-j{}'.format(multiprocessing.cpu_count()),
114 out.write('\n-------------------------------------------------------------------\n\n')
120 package_name = 'python3-{}-{}.tar.bz2'.format(host.value, build_id)
125 print('## Package : {}'.format(package_path))
126 print('## Install Dir : {}'.format(install_dir))
131 "lib/python*/config-*",
143 "wininst-*", "bdist_wininst.py",
147 tar_cmd.append('--exclude')
149 tar_cmd.extend(['-cjf', package_path, '.'])