All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.sourceforge.net>
Subject: [PATCH] Simple makefile changes for x86-64 compiltion of tools
Date: Mon, 07 Feb 2005 13:03:58 -0600	[thread overview]
Message-ID: <1107803039.5793.26.camel@thinkpad> (raw)

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

Hi all,
	Here are a few simple changes to the makefiles in the tools dir to help
on compilation on x86-64. This mainly is so that libxutil will compile.
Will also have patches for libxc & python tools soon (figured I would
just send these, and not sit on them any longer).


-- 
Jerone Young
Open Virtualization
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)

[-- Attachment #2: tools_rules_mk.diff --]
[-- Type: text/x-patch, Size: 624 bytes --]

--- xen-unstable.orig/tools/Rules.mk	2005-02-07 10:12:56.184342544 -0600
+++ xen-unstable/tools/Rules.mk	2005-02-07 10:16:30.674735048 -0600
@@ -4,12 +4,14 @@ XEN_XC             = $(XEN_ROOT)/tools/p
 XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
 XEN_LIBXUTIL       = $(XEN_ROOT)/tools/libxutil
 
-ifeq ($(TARGET_ARCH),x86_32)
+XEN_TARGET_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
+
+ifeq ($(XEN_TARGET_ARCH),x86_32)
 CFLAGS  += -m32 -march=i686
 LDFLAGS += -m elf_i386
 endif
 
-ifeq ($(TARGET_ARCH),x86_64)
-CFLAGS  += -m64
+ifeq ($(XEN_TARGET_ARCH),x86_64)
+CFLAGS  += -m64 -fpic
 LDFLAGS += -m elf_x86_64
 endif

[-- Attachment #3: tools_xutil_makefile.diff --]
[-- Type: text/x-patch, Size: 498 bytes --]

--- xen-unstable.orig/tools/libxutil/Makefile	2005-02-07 10:12:56.171344520 -0600
+++ xen-unstable/tools/libxutil/Makefile	2005-02-07 10:14:11.565882808 -0600
@@ -65,7 +65,7 @@ libxutil.so.$(MAJOR).$(MINOR): $(PIC_OBJ
 	$(CC) -Wl,-soname -Wl,libxutil.so.$(MAJOR) -shared -o $@ $^
 else
 libxutil.so.$(MAJOR).$(MINOR): $(LIB_OBJS)
-	$(CC) -Wl,-soname -Wl,libxutil.so.$(MAJOR) -shared -o $@ $^
+	$(CC) $(CFLAGS) -Wl,-soname -Wl,libxutil.so.$(MAJOR) -shared -o $@ $^
 endif
 
 libxutil.a: $(LIB_OBJS)

                 reply	other threads:[~2005-02-07 19:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1107803039.5793.26.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.