From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9323 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error with --target=i386 Date: Tue, 16 Feb 2016 13:39:16 +0300 (MSK) Message-ID: References: <56C2E94C.7000705@gkmsoft.ru> <56C2FA8C.4020908@gkmsoft.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1455619207 17441 80.91.229.3 (16 Feb 2016 10:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 10:40:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9336-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 16 11:40:06 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aVd2X-0000JN-Qz for gllmg-musl@m.gmane.org; Tue, 16 Feb 2016 11:39:30 +0100 Original-Received: (qmail 25857 invoked by uid 550); 16 Feb 2016 10:39:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 25832 invoked from network); 16 Feb 2016 10:39:27 -0000 In-Reply-To: <56C2FA8C.4020908@gkmsoft.ru> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:9323 Archived-At: 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). Alexander