Hi,

Sedat Dilek wrote:

> Do I need additional patches to gcc trunk (I am using the weekly
> gcc-4.7 snapshot tarballs)?

No need for patches.  My build of gcc trunk finally finished:

        $ ./configure --prefix=$HOME/opt/gcc \
                CFLAGS_FOR_TARGET="-g -O2 -B/usr/lib/x86_64-linux-gnu" \
                CXXFLAGS_FOR_TARGET="-g -O2 -B/usr/lib/x86_64-linux-gnu"
        $ make FLAGS_FOR_TARGET='-B$(build_tooldir)/bin/ '\
'-B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include '\
'-isystem $(build_tooldir)/sys-include '\
'-B/usr/lib/x86_64-linux-gnu' \
                BOOT_CFLAGS="-g -O2 -B/usr/lib/x86_64-linux-gnu"
        $ make FLAGS_FOR_TARGET='-B$(build_tooldir)/bin/ '\
'-B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include '\
'-isystem $(build_tooldir)/sys-include '\
'-B/usr/lib/x86_64-linux-gnu' \
                BOOT_CFLAGS="-g -O2 -B/usr/lib/x86_64-linux-gnu" \
                install

The resulting compiler even seems to work, as long as you pass
-B/usr/lib/x86_64-linux-gnu to it.

Yes, it ought to be easier.  Maybe FLAGS_FOR_TARGET does everything we
need.  I'd be happy to review a patch that teaches configure.ac to
handle something like

        $ ./configure --prefix=$HOME/opt/gcc \
                --extra-flags-for-target=-B/usr/lib/x86_64-linux-gnu \
                BOOT_FLAGS='-g -O2 -B/usr/lib/x86_64-linux-gnu'
        $ make
        $ make install

[...]
> I heard of a gcc multiarch patchset sent to upstream from debian-gcc
> team - you have an URL?

I'd be interested in the answer to this if there is one, too.

Thanks, Sedat.
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to