[ewg] building userspace on ppc64 is broken

Yosef Etigin yosefe at voltaire.com
Sun Sep 16 12:27:26 PDT 2007


While building user-space binaries on ppc64, the libs are placed
in /usr/lib64, but they are built as 32 bit. This happens because
in ofed 1.2 CFLAGS=-m64 was passed by the environment from the
install script. What do you think about doing somthing like this
in the spec files to solve the problem?

--
diff --git a/libibverbs.spec.in b/libibverbs.spec.in
index 459e6f2..8fcdd72 100644
--- a/libibverbs.spec.in
+++ b/libibverbs.spec.in
@@ -47,6 +47,9 @@ displays information about InfiniBand de
 %setup -q -n %{name}- at VERSION@
 
 %build
+%ifarch ppc64
+%{expand: %%define optflags %{optflags} -m64}
+%endif
 %configure
 make %{?_smp_mflags}
 

-- 





More information about the ewg mailing list