--- a/components/open-fabrics/libmlx4/Makefile Mon Mar 04 23:02:05 2013 -0800
+++ b/components/open-fabrics/libmlx4/Makefile Tue Mar 05 13:55:23 2013 -0800
@@ -18,7 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
#
include ../../../make-rules/shared-macros.mk
@@ -44,7 +44,12 @@
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
-COMPONENT_PREP_ACTION += (cd $(@D) ; \
+COMPONENT_PREP_ACTION += (if [ x$(MACH) = "xi386" ]; then \
+ cp mlx4.driver.i386 $(@D)/mlx4.driver; \
+ else \
+ cp mlx4.driver.sparc $(@D)/mlx4.driver; \
+ fi; \
+ cd $(@D) ; \
aclocal --force ; \
libtoolize --copy --force --ltdl ; \
autoconf --force ; \