Re: how to append '-fPIC -fpic -msingle-pic-base' options to build libiberty.a?

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

 



chong huang <hch.minds@xxxxxxxxx> writes:

> I'm taking the binutils-2.19.1, elf2flt-2006q1, gcc-4.3.3, uClib-0.9.29
> to build the toolchain for arm arch machine, and got a problem, please
> see below:
>
> In order to build gcc with '-fPIC -fpic -msingle-pic-base' option, i
> edit the gcc-4.3.3/gcc/config/arm/t-arm-softfp, by adding
> 'TARGET_LIBGCC2_CFLAGS += -Wno-missing-prototypes -fPIC -fpic
> -msingle-pic-base ' at the end of the file. But the make log file
> indicates that the libgcc.a, libgcov.a, libstdc++.a, libsup++.a are all
> compiled with the options, except for the libiberty.a
>
> Does anybody know that how to add the options to build the libiberty.a?

It should work to say
    make CFLAGS_FOR_TARGET="-g -O2 -fpic -fmsingle-pic-base"
or
    CFLAGS_FOR_TARGET="-g -O2 -fpic -msingle-picbase" SRCDIR/configure ...

(-fPIC -fpic is the same as -fpic).

Ian

[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