From 8d104af29479a71ea71a2c1a2da5c1da32c78487 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 12 Nov 2005 00:04:06 +0000 Subject: [PATCH] - fix cross-build Changed files: drbd.spec -> 1.58 --- drbd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drbd.spec b/drbd.spec index 2a6442d..62bb5c5 100644 --- a/drbd.spec +++ b/drbd.spec @@ -131,6 +131,10 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist} M=$PWD O=$PWD \ %{?with_verbose:V=1} %{__make} -C %{_kernelsrcdir} modules \ +%if "%{_target_base_arch}" != "%{_arch}" + ARCH=%{_target_base_arch} \ + CROSS_COMPILE=%{_target_cpu}-pld-linux- \ +%endif HOSTCC="%{__cc}" \ CPP="%{__cpp}" \ M=$PWD O=$PWD \ -- 2.44.0