0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

OVPN3-800 build: do not build deps with -flto by default

This breaks reproducible builds. There is a possibility
of re-enabling it with using -frandom-seed, but that
will require changes in other places, so doing that
in a separate commit.

Also remove unused reference to LTO_FLAGS in other linux
targets. Just to avoid confusion.
This commit is contained in:
Frank Lichtenheld 2021-10-07 12:12:32 +02:00
parent b47c72b458
commit 722a4a9603
3 changed files with 3 additions and 4 deletions

View File

@ -2,8 +2,7 @@ export JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64
[ -z "$DEP_DIR" ] && export DEP_DIR=$HOME/linux
export PLATFORM=linux
export DEBUG_BUILD=0
LTO_FLAGS="-flto=4 -Wl,--no-as-needed" # add to OTHER_COMPILER_FLAGS for LTO
export OTHER_COMPILER_FLAGS="$LTO_FLAGS -Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
export OTHER_COMPILER_FLAGS="-Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
# Workaround for CentOS7/RHEL7 g++
if g++ --version |grep 4.8.5 > /dev/null ; then
export CXX_COMPILER_FLAGS="-std=c++1y"

View File

@ -2,7 +2,7 @@ export JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64
[ -z "$DEP_DIR" ] && export DEP_DIR=$HOME/linux-clang
export PLATFORM=linux
export DEBUG_BUILD=0
export OTHER_COMPILER_FLAGS="$LTO_FLAGS -Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
export OTHER_COMPILER_FLAGS="-Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
export CXX_COMPILER_FLAGS="-std=c++14 -stdlib=libc++"
export LIB_OPT_LEVEL="-O3"
export LIB_FPIC="-fPIC"

View File

@ -2,7 +2,7 @@ export JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64
[ -z "$DEP_DIR" ] && export DEP_DIR=$HOME/linux
export PLATFORM=linux
export DEBUG_BUILD=0
export OTHER_COMPILER_FLAGS="$LTO_FLAGS -Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
export OTHER_COMPILER_FLAGS="-Wno-unused-local-typedefs -Wno-unused-variable -Wno-shift-count-overflow -pthread"
export CXX_COMPILER_FLAGS="-std=c++14 -stdlib=libc++"
export LIB_OPT_LEVEL="-O3"
export LIB_FPIC="-fPIC"