gcc: use new --default-image-base-low option

This commit is contained in:
Jeremy Drake
2020-09-07 17:49:55 -07:00
parent fb11b6954b
commit 49df9cf0e0

View File

@@ -21,7 +21,7 @@ pkgver=10.2.0
#_majorver=${pkgver:0:1}
#_sourcedir=${_realname}-${_majorver}-${_snapshot}
_sourcedir=${_realname}-${pkgver}
pkgrel=2
pkgrel=3
pkgdesc="GCC for the MinGW-w64"
arch=('any')
url="https://gcc.gnu.org"
@@ -189,7 +189,7 @@ build() {
local _LDFLAGS_FOR_TARGET="$LDFLAGS"
LDFLAGS+=" -Wl,--disable-dynamicbase"
if [ "${CARCH}" = 'x86_64' ]; then
LDFLAGS+=",--image-base=0x400000"
LDFLAGS+=",--default-image-base-low"
fi
../${_sourcedir}/configure \