rc: fix cross build, enable PIE.

This commit is contained in:
Christian Neukirchen 2015-03-23 18:13:31 +01:00
parent 439807df63
commit 09ed7fee5c
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# Template file for 'rc' # Template file for 'rc'
pkgname=rc pkgname=rc
version=1.7.2 version=1.7.2
revision=1 revision=2
build_pie=1
build_style=gnu-configure build_style=gnu-configure
configure_args="ac_cv_sys_restartable_syscalls=no configure_args="ac_cv_sys_restartable_syscalls=no
$(vopt_if readline --with-edit=gnu) $(vopt_if readline --with-edit=gnu)
@ -25,3 +26,10 @@ pre_configure() {
LDFLAGS+=" -static" LDFLAGS+=" -static"
fi fi
} }
pre_build() {
if [ "$CROSS_BUILD" ]; then
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" LIBS= LDFLAGS= \
sigmsgs.c sigmsgs.h statval.h
fi
}