qt5-webkit: try to make it compile on i686 by using ld.gold

This commit is contained in:
maxice8 2019-01-17 00:05:21 -02:00
parent a3a01c353e
commit 1cba9c09cd
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -3,7 +3,7 @@ pkgname=qt5-webkit
version=5.212.0
revision=2
_v=${version%.*}
wrksrc=qtwebkit-everywhere-src-${_v}
wrksrc="qtwebkit-everywhere-src-${_v}"
build_style=cmake
configure_args="-DPORT=Qt -DUSE_LD_GOLD=OFF"
hostmakedepends="flex gperf perl pkg-config python qt5-qmake ruby"
@ -21,7 +21,7 @@ checksum=283b907ea324a2c734e3983c73fc27dbd8b33e2383c583de41842ee84d648a3e
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include"
CXXFLAGS="-fpermissive -Wno-class-memaccess"
if [ -n "$CROSS_BUILD" ]; then
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-declarative-devel ruby-devel"
configure_args+=" -DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/ruby-*"
fi
@ -35,7 +35,8 @@ case "$XBPS_TARGET_MACHINE" in
configure_args+=" -DENABLE_JIT=OFF -DUSE_SYSTEM_MALLOC=ON -DENABLE_ALLINONE_BUILD=OFF"
;;
i686*) # try to reduce memory footprint when linking
configure_args+=" -DENABLE_ALLINONE_BUILD=OFF"
# try to reduce memory footprint when linking by using gold
configure_args+=" -DENABLE_ALLINONE_BUILD=OFF -DUSE_LD_GOLD=ON"
;;
esac