From 3deb1e1a77889f1d0e7a416b3b1e45f5d6f5cf76 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Mar 2013 15:08:42 +0100 Subject: [PATCH] lockdev: cross build support. --- srcpkgs/lockdev/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/lockdev/template b/srcpkgs/lockdev/template index 957d68cd97a..10763eaa7d4 100644 --- a/srcpkgs/lockdev/template +++ b/srcpkgs/lockdev/template @@ -14,8 +14,8 @@ long_desc=" _both_ FSSTND and SVr4 methods." do_build() { - make shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" - make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" + make CC="$CC" shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" + make CC="$CC" static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" } do_install() {