Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: libraries/openssl-1.0.0e/nacl-openssl-1.0.0e.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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-openssl-1.0.0e.sh 7 # nacl-openssl-1.0.0e.sh
8 # 8 #
9 # usage: nacl-openssl-1.0.0e.sh 9 # usage: nacl-openssl-1.0.0e.sh
10 # 10 #
11 # this script downloads, patches, and builds openssl for Native Client 11 # this script downloads, patches, and builds openssl for Native Client
12 # 12 #
13 13
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/op enssl-1.0.0e.tar.gz 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/op enssl-1.0.0e.tar.gz
15 #readonly URL=http://www.openssl.org/source/openssl-1.0.0e.tar.gz 15 #readonly URL=http://www.openssl.org/source/openssl-1.0.0e.tar.gz
16 readonly PATCH_FILE=nacl-openssl-1.0.0e.patch 16 readonly PATCH_FILE=nacl-openssl-1.0.0e.patch
17 readonly PACKAGE_NAME=openssl-1.0.0e 17 readonly PACKAGE_NAME=openssl-1.0.0e
18 18
19 source ../../build_tools/common.sh 19 source ../../build_tools/common.sh
20 20
21 CustomConfigureStep() { 21 CustomConfigureStep() {
22 Banner "Configuring ${PACKAGE_NAME}" 22 Banner "Configuring ${PACKAGE_NAME}"
23 local extra_args="" 23 local extra_args=""
24 if [[ "${NACL_ARCH}" = "pnacl" || 24 if [[ "${NACL_ARCH}" = "pnacl" ||
25 "${NACL_TOOLCHAIN_ROOT}" == *newlib* ]] ; then 25 "${NACL_TOOLCHAIN_ROOT}" == *newlib* ]] ; then
26 readonly GLIBC_COMPAT=${NACL_SDK_USR_INCLUDE}/glibc-compat 26 readonly GLIBC_COMPAT=${NACLPORTS_INCLUDE}/glibc-compat
27 if [[ ! -f ${GLIBC_COMPAT}/netdb.h ]]; then 27 if [[ ! -f ${GLIBC_COMPAT}/netdb.h ]]; then
28 echo "Please install glibc-compat first" 28 echo "Please install glibc-compat first"
29 exit 1 29 exit 1
30 fi 30 fi
31 extra_args+=" no-dso -DOPENSSL_NO_SOCK=1 -I${GLIBC_COMPAT}" 31 extra_args+=" no-dso -DOPENSSL_NO_SOCK=1 -I${GLIBC_COMPAT}"
32 fi 32 fi
33 33
34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
35 MACHINE=i686 CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} ./config \ 35 MACHINE=i686 CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} ./config \
36 --prefix=${NACL_SDK_USR} no-asm no-hw no-krb5 ${extra_args} -D_GNU_SOURCE 36 --prefix=${NACLPORTS_PREFIX} no-asm no-hw no-krb5 ${extra_args} -D_GNU_SOUR CE
37 } 37 }
38 38
39 CustomHackStepForNewlib() { 39 CustomHackStepForNewlib() {
40 # These two makefiles build binaries which we do not care about, 40 # These two makefiles build binaries which we do not care about,
41 # and they depend on -ldl, so cannot be built with newlib. 41 # and they depend on -ldl, so cannot be built with newlib.
42 echo "all clean install: " > apps/Makefile 42 echo "all clean install: " > apps/Makefile
43 echo "all clean install: " > test/Makefile 43 echo "all clean install: " > test/Makefile
44 } 44 }
45 45
46 CustomBuildStep() { 46 CustomBuildStep() {
(...skipping 11 matching lines...) Expand all
58 "${NACL_TOOLCHAIN_ROOT}" == *newlib* ]] ; then 58 "${NACL_TOOLCHAIN_ROOT}" == *newlib* ]] ; then
59 CustomHackStepForNewlib 59 CustomHackStepForNewlib
60 fi 60 fi
61 CustomBuildStep 61 CustomBuildStep
62 DefaultInstallStep 62 DefaultInstallStep
63 DefaultCleanUpStep 63 DefaultCleanUpStep
64 } 64 }
65 65
66 CustomPackageInstall 66 CustomPackageInstall
67 exit 0 67 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698