From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Re: musl-gcc -m32 is broken
Date: Thu, 27 Aug 2015 16:09:14 -0400 [thread overview]
Message-ID: <20150827200914.GX32742@brightrain.aerifal.cx> (raw)
In-Reply-To: <55DF6BDD.6000104@amacapital.net>
On Thu, Aug 27, 2015 at 12:58:21PM -0700, Andy Lutomirski wrote:
> On 08/26/2015 06:44 PM, Rich Felker wrote:
> >On Wed, Aug 26, 2015 at 03:16:22PM -0700, Andy Lutomirski wrote:
> >>Adding %{m16|m32:-m elf_i386} to the *link spec in musl-gcc.specs
> >>fixes at least the obvious failure for me.
> >
> >Can you clarify? musl-gcc's target is coupled to the target arch that
> >the corresponding musl libc was built for. Switching targets with -m32
> >and similar options is not going to get you correspondingly switched
> >libraries. Or am I misunderstanding what you're trying to do?
>
> I build for an i386 target on an x86_64 Fedora system using
> CFLAGS=-m32. It built successfully and even seems to work, but
> musl-gcc ends up omitting -m32 in the link stage, so it tries to
> pick up the wrong libraries and fails to link.
I think -m32 should be part of $CC, not $CFLAGS. Then it should get
incorporated into the musl-gcc script.
Rich
next prev parent reply other threads:[~2015-08-27 20:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 22:16 Andy Lutomirski
2015-08-27 1:44 ` Rich Felker
2015-08-27 19:58 ` Andy Lutomirski
2015-08-27 20:09 ` Rich Felker [this message]
2015-08-28 0:49 ` Andy Lutomirski
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=20150827200914.GX32742@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).