public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross GCC (MULTILIB_OSDIRNAMES m32)
@ 2020-10-20  6:36 evanation
  2020-10-20  7:51 ` evanation
  0 siblings, 1 reply; 2+ messages in thread
From: evanation @ 2020-10-20  6:36 UTC (permalink / raw)
  To: gcc-help

If build gcc with the --with-build-sysroot=$sysroot_dir parameter, then the
built gcc -m32 will look for libraries in $sysroot_dir/lib32 and
$sysroot_dir/usr/lib32, if there are such directories there. But if build
with the --without-headers parameter and without --with-build-sysroot then
how to make the assembled gcc -m32 look in $sysroot_dir/lib32? Only edit
gcc/config/i386/t-linux64 file?
My building parametres:
configure \
--build=$(../"$srcdir"/config.guess) \
--host=$(../"$srcdir"/config.guess) \
--target=$_target \
--prefix=$_prefix \
--with-sysroot=$_sysroot \
--with-newlib \
--disable-nls \
--enable-multilib \
--with-multilib-list=m64,m32,mx32 \
--disable-shared \
--disable-threads \
--enable-languages=c,c++

P.S. Sorry for my English

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross GCC (MULTILIB_OSDIRNAMES m32)
  2020-10-20  6:36 Cross GCC (MULTILIB_OSDIRNAMES m32) evanation
@ 2020-10-20  7:51 ` evanation
  0 siblings, 0 replies; 2+ messages in thread
From: evanation @ 2020-10-20  7:51 UTC (permalink / raw)
  To: gcc-help

Sorry. After adding the configure option --with-build-sysroot=$sysroot_dir,
It began to look for $sysroot_dir/lib32. Strange, earlier with this option,
static gcc did not compile for me

вт, 20 окт. 2020 г. в 17:36, evanation <evanation.ru@gmail.com>:

> If build gcc with the --with-build-sysroot=$sysroot_dir parameter, then
> the built gcc -m32 will look for libraries in $sysroot_dir/lib32 and
> $sysroot_dir/usr/lib32, if there are such directories there. But if build
> with the --without-headers parameter and without --with-build-sysroot then
> how to make the assembled gcc -m32 look in $sysroot_dir/lib32? Only edit
> gcc/config/i386/t-linux64 file?
> My building parametres:
> configure \
> --build=$(../"$srcdir"/config.guess) \
> --host=$(../"$srcdir"/config.guess) \
> --target=$_target \
> --prefix=$_prefix \
> --with-sysroot=$_sysroot \
> --with-newlib \
> --disable-nls \
> --enable-multilib \
> --with-multilib-list=m64,m32,mx32 \
> --disable-shared \
> --disable-threads \
> --enable-languages=c,c++
>
> P.S. Sorry for my English
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-20  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  6:36 Cross GCC (MULTILIB_OSDIRNAMES m32) evanation
2020-10-20  7:51 ` evanation

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 read-only IMAP folder(s) and NNTP newsgroup(s).