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

Re: [PATCH] cross-compilation for binutils.

David Woodhouse <dwmw2 infradead org> writes:

>> Something like
>> | --enable-targets=%_host
>> should be added everytime to allow e.g. 'strip' to work on both native
>> and on target binaries.  This is required when building cross-rpms which
>> are providing target and native binaries.
> Is it really? You already have to use the appropriate compiler and
> linker for native vs. target binaries -- why can't you use the
> appropriate version of 'strip', too?

rpm magic; final %__spec_install_post makes something like

+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive arm-iwmmxt-linux-gnueabi-strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note arm-iwmmxt-linux-gnueabi-strip arm-iwmmxt-linux-gnueabi-objdump

and does not differ between target and native binaries.

> And even if you _do_ need it, it sounds like that's a job for a
> 'binutils-multi' configured with --enable-targets=all. I'm not sure
> that, e.g., my i686-redhat-linux-gcc should also be able to strip
> native PowerPC binaries.

There seems to be some overhead when adding 64 bit target support for 32
bit hosts



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