| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 | 6 |
| 7 # nacl-glibc-compat-0.1.sh | 7 # nacl-glibc-compat-0.1.sh |
| 8 # | 8 # |
| 9 # usage: nacl-glibc-compat-0.1.sh | 9 # usage: nacl-glibc-compat-0.1.sh |
| 10 # | 10 # |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 CustomConfigureStep() { | 28 CustomConfigureStep() { |
| 29 Banner "Configuring ${PACKAGE_NAME}" | 29 Banner "Configuring ${PACKAGE_NAME}" |
| 30 # export the nacl tools | 30 # export the nacl tools |
| 31 export CC=${NACLCC} | 31 export CC=${NACLCC} |
| 32 export CXX=${NACLCXX} | 32 export CXX=${NACLCXX} |
| 33 export AR=${NACLAR} | 33 export AR=${NACLAR} |
| 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 35 } | 35 } |
| 36 | 36 |
| 37 CustomInstallStep() { | 37 CustomInstallStep() { |
| 38 Remove ${NACL_SDK_USR_LIB}/${LIB_GLIBC_COMPAT} | 38 Remove ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT} |
| 39 Remove ${NACL_SDK_USR_INCLUDE}/glibc-compat | 39 Remove ${NACLPORTS_INCLUDE}/glibc-compat |
| 40 install -m 644 out/${LIB_GLIBC_COMPAT} ${NACL_SDK_USR_LIB}/${LIB_GLIBC_COMPAT} | 40 install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT} |
| 41 cp -r include ${NACL_SDK_USR_INCLUDE}/glibc-compat | 41 cp -r include ${NACLPORTS_INCLUDE}/glibc-compat |
| 42 } | 42 } |
| 43 | 43 |
| 44 CustomPackageInstall() { | 44 CustomPackageInstall() { |
| 45 DefaultPreInstallStep | 45 DefaultPreInstallStep |
| 46 CustomExtractStep | 46 CustomExtractStep |
| 47 CustomConfigureStep | 47 CustomConfigureStep |
| 48 DefaultBuildStep | 48 DefaultBuildStep |
| 49 CustomInstallStep | 49 CustomInstallStep |
| 50 DefaultCleanUpStep | 50 DefaultCleanUpStep |
| 51 } | 51 } |
| 52 | 52 |
| 53 CustomPackageInstall | 53 CustomPackageInstall |
| OLD | NEW |