Re: [PATCH] cross-compilation for binutils.

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

 



David Woodhouse <dwmw2@xxxxxxxxxxxxx> writes:

> -CARGS=--enable-targets=i386-linux
> +case %{binutils_target} in
> +    sparc*|ppc*|s390*)
> +       CARGS=--enable-64-bit-bfd
> +       ;;
> +    ia64*)
> +        CARGS=--enable-targets=i386-linux
> +       ;;
> +esac

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.


> +   SYSROOT="--with-sysroot=/usr/%{binutils_target}"

Sysroot should be '/usr/%binutils_target/sys-root' (which is the value
assumed by gcc).  E.g. native binaries (e.g. the cross gcc) are usually
under /usr/%binutils_target/bin and your sysroot would conflict with it.



Enrico

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux