All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] 1 of 3 fix tools/Rules.mk for cross compilation
Date: Thu, 07 Jul 2005 00:35:43 -0500	[thread overview]
Message-ID: <1120714543.8438.19.camel@thinkpad> (raw)


This patch fixes linking issue when cross compiling. The tools are
calling gcc to link objects. So LDFLAGS has to change so that gcc
properly understands them, as our current situation does not work (at
least with gcc4).

oh gcc4 how I love you so.
You really make the code go.
If a day were ever bright
gcc4 would make no light.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
--- tools/Rules.mk.old  2005-07-06 23:25:08.000000000 -0500
+++ tools/Rules.mk      2005-07-06 23:44:53.000000000 -0500
@@ -7,12 +7,12 @@ XEN_LIBXC          = $(XEN_ROOT)/tools/l

ifeq ($(XEN_TARGET_ARCH),x86_32)
CFLAGS  += -m32 -march=i686
-LDFLAGS += -m elf_i386
+LDFLAGS += -m32
endif

ifeq ($(XEN_TARGET_ARCH),x86_64)
CFLAGS  += -m64
-LDFLAGS += -m elf_x86_64
+LDFLAGS += -m64
endif

X11_LDPATH = -L/usr/X11R6/$(LIBDIR)


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

                 reply	other threads:[~2005-07-07  5:35 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=1120714543.8438.19.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /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.