Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160216165409.GV9349@brightrain.aerifal.cx>
Date: Tue, 16 Feb 2016 11:54:09 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Compile error with --target=i386

On Tue, Feb 16, 2016 at 01:39:16PM +0300, Alexander Monakov wrote:
> On Tue, 16 Feb 2016, Petr Petrov wrote:
> > Bingo! It works! Thank you very much!
> > 
> > Never-mind, I tried to use CFLAGS:
> > 
> > CFLAGS=-m32
> > ./confgiure --target=i386
> > make
> > 
> > but it didn't work.
> 
> As a general rule, ABI-altering options should go to $CC/$CXX, not $CFLAGS,
> because the latter need not be applied when assembling and linking (so if -m32
> is not present on gcc command line when doing the link step, it won't pass
> -m elf_i386 to ld, and library search paths will be wrong too).

In the case of musl, CFLAGS is always passed even at the linking
stage; I think the problem is just at configure time, where the
user-provided CFLAGS are not used in all the configure-time tests.
Maybe this is contrary to the normal UI for configure scripts and
should be changed?

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.