drbd-utils: fix cross build
This commit is contained in:
parent
8986adf185
commit
8aa39887b1
1 changed files with 5 additions and 5 deletions
|
@ -3,6 +3,7 @@ pkgname=drbd-utils
|
||||||
version=9.11.0
|
version=9.11.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_helper="qemu"
|
||||||
configure_args="
|
configure_args="
|
||||||
--sbindir=/usr/bin \
|
--sbindir=/usr/bin \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
@ -41,11 +42,10 @@ pre_configure() {
|
||||||
find -name "*.c" -exec sed -i "{}" -e 's#sys/poll\.h#poll.h#g' \;
|
find -name "*.c" -exec sed -i "{}" -e 's#sys/poll\.h#poll.h#g' \;
|
||||||
find -name Makefile.in -exec sed -i "{}" -e 's#$(DESTDIR)/lib#$(DESTDIR)/usr/lib#g' \;
|
find -name Makefile.in -exec sed -i "{}" -e 's#$(DESTDIR)/lib#$(DESTDIR)/usr/lib#g' \;
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
# Replace drbdsetup{,-83,84} with the /usr/bin or /usr/libexec counterparts
|
# Replace drbdsetup{,-84,9} with the /usr/bin or /usr/libexec counterparts
|
||||||
find -name Makefile.in -exec sed -i "{}" \
|
find -name "Makefile*" -exec sed -i "{}" \
|
||||||
-e 's#^\(\s\)../../user/v83/drbdsetup-83#\1/usr/libexec/drbdsetup-83#' \
|
-e 's#^\(\s\)$(TOPDIR)/user/v84/drbdsetup-84#\1/usr/libexec/drbdsetup-84#' \
|
||||||
-e 's#^\(\s\)../../user/v84/drbdsetup-84#\1/usr/libexec/drbdsetup-84#' \
|
-e 's#^\(\s\)$(TOPDIR)/user/v9/drbdsetup#\1/usr/bin/drbdsetup#' \
|
||||||
-e 's#^\(\s\)../../user/v9/drbdsetup#\1/usr/bin/drbdsetup#' \
|
|
||||||
\;
|
\;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue