modsecurity: fix cross-build
This commit is contained in:
parent
a4e60da5e3
commit
f641031313
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue