modsecurity: fix cross-build

This commit is contained in:
Nathan Owens 2020-12-25 17:44:48 -06:00 committed by Érico Nogueira Rolim
parent a4e60da5e3
commit f641031313
1 changed files with 7 additions and 3 deletions

View File

@ -15,12 +15,16 @@ license="Apache-2.0"
homepage="https://www.modsecurity.org" homepage="https://www.modsecurity.org"
distfiles="https://github.com/SpiderLabs/ModSecurity/releases/download/v${version}/modsecurity-v${version}.tar.gz" distfiles="https://github.com/SpiderLabs/ModSecurity/releases/download/v${version}/modsecurity-v${version}.tar.gz"
checksum=b4231177dd80b4e076b228e57d498670113b69d445bab86db25f65346c24db22 checksum=b4231177dd80b4e076b228e57d498670113b69d445bab86db25f65346c24db22
nocross="configure: error: cannot check for file existence when cross compiling"
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends" hostmakedepends+=" $makedepends"
fi fi
pre_build() { pre_configure() {
sed -ri 's|(hardcode_into_libs)=.*|\1=no|' libtool # Use target paths or will link against host libs
vsed -e "s,\${path},${XBPS_CROSS_BASE}/usr,g" -i configure
}
pre_build() {
vsed -i '/^hardcode_into_libs=.*/s,yes,no,' libtool
} }