Crosscompiled native compler lack default include/lib path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm crosscompiling a native 4.7.3 compiler for ARM target, host is CentOS x86, using CROSSTOOLS-NG. It works on the ARM, but no default include path, cpp -v gives empty list and linker (ld) looks for crt1.o, etc. in current folder, no default library search path.

After reading docs, searching still don't know what is missing during build. Help is appreciated. See my build script below.

Regards... Bela


------------------------------------------------------------------------------------------------------------------------------------------
export PATH="${PATH}:/xtbin"

export CFLAGS="-march="armv6 -mfpu=vfp -mfloat-abi=hard"
export CXXFLAGS="-march="armv6 -mfpu=vfp -mfloat-abi=hard"

# Configure

../gcc-4.7.3/configure \
--build=i686-pc-none \
--host=armv6l-picore-linux-gnueabi \
--target=armv6l-unknown-linux-gnueabihf \
--enable-clocale=gnu \
--enable-threads=posix \
--enable-__cxa_atexit \
--with-sysroot \
--with-gmp=/xtsysroot/usr/local \
--with-mpfr=/xtsysroot/usr/local \
--with-mpc=/xtsysroot/usr/local \
--prefix=/usr/local \
--enable-languages=c,c++ \
--with-pkgversion=piCore \
--enable-shared \
--disable-multilib \
--disable-bootstrap \
--enable-lto \
--enable-cloog-backend=isl \

# Build

make




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux