From: James A Simmons <uja-1Heg1YXhbW8@public.gmane.org>
To: OFED <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: infinipath-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org
Subject: Makefile fix for infinipath-psm
Date: Wed, 01 Sep 2010 11:23:41 -0400 [thread overview]
Message-ID: <1283354621.14487.80.camel@bohr.ornl.gov> (raw)
[-- Attachment #1: Type: text/plain, Size: 129 bytes --]
This patch allows make to work. The arch command has gone away with new
coreutils so it is recommended to use uname -m instead.
[-- Attachment #2: make.diff --]
[-- Type: text/x-patch, Size: 593 bytes --]
--- Makefile.orig 2010-09-01 10:57:58.000000000 -0400
+++ Makefile 2010-09-01 10:58:40.000000000 -0400
@@ -69,14 +69,14 @@
include $(top_srcdir)/buildflags.mak
lib_build_dir := $(build_dir)
-ifneq (x86_64,$(arch))
- ifneq (i386,$(arch))
- $(error Unsupported architecture $(arch))
+ifneq (x86_64,$(shell uname -m))
+ ifneq (i386,$(shell uname -m))
+ $(error Unsupported architecture $(shell uname -m))
endif
endif
ifndef LIBDIR
- ifeq (${arch},x86_64)
+ ifeq ($(shell uname -m),x86_64)
INSTALL_LIB_TARG=/usr/lib64
else
INSTALL_LIB_TARG=/usr/lib
next reply other threads:[~2010-09-01 15:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 15:23 James A Simmons [this message]
[not found] ` <1283354621.14487.80.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
2010-09-01 15:39 ` install libsdp openib setup James A Simmons
[not found] ` <1283355558.14487.83.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
2010-09-02 12:34 ` Amir Vadai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1283354621.14487.80.camel@bohr.ornl.gov \
--to=uja-1heg1yxhbw8@public.gmane.org \
--cc=infinipath-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=simmonsja-1Heg1YXhbW8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox