David Woodhouse <dwmw2@xxxxxxxxxxxxx> 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 https://bugzilla.redhat.com/show_bug.cgi?id=63618 Enrico -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list