monero-core: fix armv[56]*

This commit is contained in:
Jürgen Buchmüller 2018-01-08 22:31:15 +01:00
parent d6c7272247
commit 3e2da1ad3c
1 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,11 @@ checksum=39870b40b81cfe986c4ccd379fdde2cf34dabe8e427f7a9723e73ec9ee4ceae0
pre_configure() {
echo "var GUI_VERSION = \"${version}\"" > version.js
echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js
case "$XBPS_TARGET_MACHINE" in
armv[56]*) # armv[56]* need to link libatomic.a for __atomic_fetch_sub_8
sed -i *.pro -e "s;-lreadline ;-lreadline -latomic ;"
;;
esac
}
pre_build() {
@ -26,10 +31,11 @@ pre_build() {
# The dictgen binary is executed during the build to generate code
# but is not included in the binary package. It thus needs to be
# built for the host
CXX=${CXX_host} CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} make -j ${XBPS_MAKEJOBS} -C src/zxcvbn-c dictgen
CXX=${CXX_host} CXXFLAGS="${XBPS_CXXFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \
make ${makejobs} -C src/zxcvbn-c dictgen
fi
make -j ${XBPS_MAKEJOBS} -C src/zxcvbn-c
make ${makejobs} -C src/zxcvbn-c
}
do_install() {