2019-06-21 11:53:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# dpkg --add-architecture not needed for Ubuntu 18.04
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
# For Ubuntu 18.04:
|
|
|
|
#
|
|
|
|
# sudo apt-get -y install \
|
|
|
|
# autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \
|
|
|
|
# g++-multilib-i686-linux-gnu
|
|
|
|
# ./configure --enable-werror --enable-show-failed-test-output \
|
|
|
|
# CC=i686-linux-gnu-gcc CXX=i686-linux-gnu-g++
|
|
|
|
|
|
|
|
sudo apt-get -y install \
|
|
|
|
autoconf build-essential zlib1g-dev:i386 libjpeg-dev:i386 \
|
2020-04-06 07:19:52 +00:00
|
|
|
libssl-dev:i386 g++-multilib
|
2019-06-21 11:53:05 +00:00
|
|
|
./configure --enable-werror --enable-show-failed-test-output \
|
|
|
|
CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
|
|
|
|
|
|
|
|
make -j$(nproc) -k
|
|
|
|
make -k check
|