Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZrJ6q0SHu5sy64B9@voyager>
Date: Tue, 6 Aug 2024 21:34:03 +0200
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Cc: Ritvik Tanksalkar <ritviktanksalkar@...il.com>
Subject: Re: Build failure on 64 bit machine for 32 bit target

Am Tue, Aug 06, 2024 at 12:00:36PM -0400 schrieb Ritvik Tanksalkar:
> CC=gcc CFLAGS="-m32" LDFLAGS="-m32" ./configure --host=i686-linux-gnu
>

That doesn't work. Try

CC="gcc -m32" ./configure --target=i686 AR=ar RANLIB=ranlib

Your way does not add "-m32" for configure tests. Unfortunately, this
way I am still only able to generate the static library, because the
shared one uses the wrong libgcc. Because -m32 does not change the
output of "gcc -print-libgcc-file-name". No clue how you are supposed to
do this, short of using a real cross compiler.

Ciao,
Markus

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.