-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathlinux-gcc-4x-x86.yml
34 lines (32 loc) · 1.16 KB
/
linux-gcc-4x-x86.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: 0.2
#this build spec assumes the ubuntu 14.04 trusty image
phases:
install:
commands:
- sudo apt-get update -y
- sudo apt-get install gcc gcc-multilib g++ g++-multilib cmake3 -y
- mkdir libcrypto-build
- cd libcrypto-build
- curl -LO https://www.openssl.org/source/openssl-1.1.0j.tar.gz
- tar -xzvf openssl-1.1.0j.tar.gz
- cd openssl-1.1.0j
- setarch i386 ./config -fPIC no-shared \
-m32 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-zlib \
no-hw no-mdc2 no-seed no-idea no-camellia\
no-bf no-ripemd no-dsa no-ssl2 no-ssl3 no-capieng \
-DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS \
--prefix=/tmp/builds/install
- make -j 12
- make install_sw
- cd $CODEBUILD_SRC_DIR
pre_build:
commands:
- export CC=gcc
- export CXX=g++
build:
commands:
- echo Build started on `date`
- setarch i386 ./codebuild/common-posix.sh -DCMAKE_INSTALL_PREFIX=/tmp/builds/install -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_LINK_FLAGS="-m32"
post_build:
commands:
- echo Build completed on `date`