[Freemint-list] When cross compiling native gcc, 'include-fixed' contains stuff from /usr

Miro Kropáček miro.kropacek at gmail.com
Sun Sep 24 06:19:16 MSD 2017


Hi all,

I have a rather annoying issue. This is perhaps a question of a ./configue
switch. include-fixed contains stuff from the directory specified by
--prefix and "mirrored" in
$PREFIX/lib/gcc/m68k-atari-mint/7.2.0/include-fixed. This works for cross
compiler (where prefix is usually the solely place where do you keep your
target sysroot) but not for native compiler where I compile it like this:

        mkdir -p ${FOLDER_GCC}-${CPU}-atari
        cd ${FOLDER_GCC}-${CPU}-atari && \
        ../disable_ftw.sh && \
        export PATH=${INSTALL_DIR}/bin:$$PATH CFLAGS="-O2
-fomit-frame-pointer" CXXFLAGS="-O2 -fomit-frame-pointer" && \
        ../${FOLDER_GCC}/configure \
                *--prefix=/usr* \
                --host=${TARGET} \
                --target=${TARGET} \
                --disable-nls \
                --enable-languages="c,c++" \
                --disable-libstdcxx-pch \
                --disable-libgomp \
                --with-cpu=${CPU} && \
        $(MAKE) && \
        $(MAKE) install-strip
DESTDIR=${PWD}/binary-package/${CPU}/gcc-${VERSION_GCC}

(so the generated tree would be easy to depack to /). My native gcc archive
now contains a lot of crap in
$PREFIX/lib/gcc/m68k-atari-mint/7.2.0/include-fixed, like SDL2, KDE, xorg
headers... any idea how to avoid it and yet have the /usr "destination" ?

-- 
MiKRO / Mystic Bytes
http://mikro.atari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170924/4f84d3ca/attachment.html 


More information about the Freemint-list mailing list