OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 source pkg_info | 6 source pkg_info |
7 source ../../build_tools/common.sh | 7 source ../../build_tools/common.sh |
8 | 8 |
9 EXECUTABLES=python.nexe | 9 EXECUTABLES=python.nexe |
10 # Currently this package only builds on linux. | 10 # Currently this package only builds on linux. |
11 # The build relies on certain host binaries and pythong's configure | 11 # The build relies on certain host binaries and pythong's configure |
12 # requires us to sett --build= as well as --host=. | 12 # requires us to sett --build= as well as --host=. |
13 EXTRA_CONFIGURE_ARGS="--disable-ipv6 --with-suffix=.nexe --build=x86_64-linux-gn u" | |
14 export MAKEFLAGS="PGEN=../build-nacl-host/Parser/pgen" | |
15 HERE=$(cd "$(dirname "$BASH_SOURCE")" ; pwd) | 13 HERE=$(cd "$(dirname "$BASH_SOURCE")" ; pwd) |
16 | 14 |
17 BuildHostPython() { | 15 BuildHostPython() { |
18 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | 16 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
19 MakeDir build-nacl-host | 17 MakeDir build-nacl-host |
20 ChangeDir build-nacl-host | 18 ChangeDir build-nacl-host |
21 LogExecute ../configure | 19 CFLAGS="" LDFLAGS="" LogExecute ../configure |
Mark Seaborn
2013/07/16 15:40:12
Can you comment setting CFLAGS="" LDFLAGS="", plea
Sam Clegg
2013/07/16 16:19:16
Done.
| |
22 LogExecute make -j${OS_JOBS} python Parser/pgen | 20 LogExecute make -j${OS_JOBS} python Parser/pgen |
23 } | 21 } |
24 | 22 |
25 CustomConfigureStep() { | 23 CustomConfigureStep() { |
26 BuildHostPython | 24 BuildHostPython |
27 export CROSS_COMPILE=true | 25 export CROSS_COMPILE=true |
28 # We pre-seed configure with certain results that it cannot determine | 26 # We pre-seed configure with certain results that it cannot determine |
29 # since we are doing a cross compile. The $CONFIG_SITE file is sourced | 27 # since we are doing a cross compile. The $CONFIG_SITE file is sourced |
30 # by configure early on. | 28 # by configure early on. |
29 EXTRA_CONFIGURE_ARGS+=" --disable-ipv6" | |
Mark Seaborn
2013/07/16 15:40:12
Should this be
EXTRA_CONFIGURE_ARGS="--disable-ipv
Sam Clegg
2013/07/16 16:19:16
Done.
| |
30 EXTRA_CONFIGURE_ARGS+=" --with-suffix=.nexe" | |
31 EXTRA_CONFIGURE_ARGS+=" --build=x86_64-linux-gnu" | |
32 export MAKEFLAGS="PGEN=../build-nacl-host/Parser/pgen" | |
31 export CONFIG_SITE=${HERE}/config.site | 33 export CONFIG_SITE=${HERE}/config.site |
34 export LIBS="-lc -lnosys" | |
32 DefaultConfigureStep | 35 DefaultConfigureStep |
33 } | 36 } |
34 | 37 |
35 CustomTestStep() { | 38 CustomTestStep() { |
36 WriteSelLdrScript python python.nexe | 39 WriteSelLdrScript python python.nexe |
37 } | 40 } |
38 | 41 |
39 CustomPackageInstall() { | 42 CustomPackageInstall() { |
40 DefaultPreInstallStep | 43 DefaultPreInstallStep |
41 DefaultDownloadStep | 44 DefaultDownloadStep |
42 DefaultExtractStep | 45 DefaultExtractStep |
43 DefaultPatchStep | 46 DefaultPatchStep |
44 CustomConfigureStep | 47 CustomConfigureStep |
45 DefaultBuildStep | 48 DefaultBuildStep |
46 DefaultTranslateStep | 49 DefaultTranslateStep |
47 DefaultValidateStep | 50 DefaultValidateStep |
48 CustomTestStep | 51 CustomTestStep |
49 DefaultInstallStep | 52 DefaultInstallStep |
50 DefaultCleanUpStep | 53 DefaultCleanUpStep |
51 } | 54 } |
52 | 55 |
53 CustomPackageInstall | 56 CustomPackageInstall |
54 exit 0 | 57 exit 0 |
OLD | NEW |