Re: cross compile patch - superseed non responsible toolchain-source
Bastian Blank writes:
> hi folks
>
> this patch reworks the cross compiling facilities within the gcc
> package. i write this because the toolchain-source, which should do that
> work, isn't longer maintained.
thanks for the patches. I tried to apply them to my current work
sources. Some questions.
> it changes the following:
> - debian/control.m4:
some chunks did not cleanly apply. attched is a control file for
m68k. Please could you check it and send me diffs how it should look
like.
> - cross packages don't have a version
hmm, they do have a version ...
> - enable c++ cross package
why are so many packages really needed? Isn't one cross compiler
package sufficient?
> - debian/rules.d/binary-*-cross.mk:
> - add copies of the native rules
> - debian/rules.defs:
> - rework the arch resolution code
> - define DEB_TARGET_* along with DEB_HOST_*
> - enable common packages for cross compilation
> - explicite disable libffi from cross compilation
> - debian/rules*:
> - use DEB_CROSS for cross compile determination
> - debian/rules2:
> - change configure options
> - fix package names
> - import right make files
debian/rules2:
@@ -324,7 +328,7 @@
&
endif
-ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
+ifeq ($(DEB_TARGET_GNU_SYSTEM),linux)
-echo "Running testsuite ..."; \
if [ -e /proc/meminfo ]; then \
m=`awk '/^((Mem|Swap)Free|Cached)/{m+=$$2}END{print int(m*.9)}' \
This should remain HOST, not TARGET, some other occurences as well.
Matthias
Source: gcc-3.2
Section: devel
Priority: optional
Maintainer: Debian GCC maintainers <debian-gcc@lists.debian.org>
Uploaders: Christopher C. Chimelis <chris@debian.org>, Matthias Klose <doko@debian.org>, Ryan Murray <rmurray@debian.org>
Standards-Version: 3.5.6
Build-Depends: libc6.1-dev (>= 2.2.5-8) [alpha ia64] | libc0.3-dev [hurd-i386] | libc1-dev [freebsd-i386] | libc12-dev [netbsd-i386] | libc6-dev (>= 2.2.5-8), m4, autoconf2.13, automake1.4 | automake (<< 1.5), libtool, autotools-dev, gawk, dejagnu (>= 1.4), expect (>= 5.38.0), bzip2, binutils (>= 2.13.90.0.10) [!s390], binutils (>= 2.13.90.0.4) [s390], debhelper (>= 3.0.25), gperf (>= 2.7-3), bison (>= 1:1.875a-1) | bison (<< 1.50), flex, gettext, texinfo, zlib1g-dev, libgc6-dev [!avr !freebsd-i386], xlibs-dev, gnat-3.2 [!arm !hurd-i386 !m68k !freebsd-i386 !netbsd-i386] | gnat (>= 3.14p-3) [i386 powerpc sparc], libncurses5-dev, libgmp3-dev, libc6-dev-s390x [s390], tetex-bin, locales [!netbsd-i386], gcc-2.95 [m68k], procps, help2man
Build-Depends-Indep: doxygen, sharutils
Package: libgcc1-m68k
Architecture: any
Section: libs
Priority: optional
Depends: ${shlibs:Depends}
Replaces: libgcc300, libgcc0
Description: GCC support library
Shared version of the support library, a library of internal subroutines
that GCC uses to overcome shortcomings of particular machines, or
special needs for some languages.
Package: gcc-m68k-3.2
Architecture: any
Section: devel
Priority: optional
Depends: ${shlibs:Depends}, binutils-m68k (>= 2.13.90.0.10)
Suggests: task-c-devel
Provides: c-compiler-m68k
Recommends: m68k-libc
Suggests: gcc-3.2-doc (>= 1:3.2.3-0pre2)
Description: The GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
Package: g++-m68k-3.2
Architecture: any
Section: devel
Priority: optional
Provides: c++-compiler-m68k
Depends: gcc-3.2-base, ${shlibs:Depends}, gcc-m68k (>= 1:3.2.3-0pre2), gcc-m68k (<< 1:3.2.4), libstdc++5-m68k-dev (>= 1:3.2.3-0pre2)
Suggests: task-c++-devel, gcc-3.2-doc (>= 1:3.2.3-0pre2)
Description: The GNU C++ compiler
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Package: libstdc++5-m68k
Architecture: any
Section: base
Priority: optional
Depends: gcc-3.2-base, ${shlibs:Depends}
Description: The GNU Standard C++ Library v3
This package contains an additional runtime library for C++ programs
built with the GNU compiler.
.
libstdc++-v3 is a complete rewrite from the previous libstdc++-v2, which
was included up to g++-2.95. The first version of libstdc++-v3 appeared
in g++-3.0.
Package: libstdc++5-m68k-dev
Architecture: any
Priority: optional
Depends: gcc-3.2-base, libstdc++5-m68k (>= 1:3.2.3-0pre2), libc6-dev (>= 2.2.5-8), g++-m68k (>= 1:3.2.3-0pre2)
Provides: libstdc++-m68k-dev
Description: The GNU Standard C++ Library v3 (development files)
This package contains the headers and static library files necessary for
building C++ programs which use libstdc++. Be advised that this only works
with the GNU C++ compiler (version 3.0), and no earlier library will work it.
.
libstdc++-v3 is a complete rewrite from the previous libstdc++-v2, which
was included up to g++-2.95. The first version of libstdc++-v3 appeared
in g++-3.0.
Package: libstdc++5-m68k-pic
Architecture: any
Priority: extra
Depends: gcc-3.2-base, libstdc++5-m68k, libstdc++5-m68k-dev
Description: The GNU Standard C++ Library v3 (shared library subset kit)
This is used to develop subsets of the libstdc++ shared libraries for
use on custom installation floppies and in embedded systems.
.
Unless you are making one of those, you will not need this package.
Package: libstdc++5-m68k-dbg
Architecture: any
Priority: extra
Depends: gcc-3.2-base, libstdc++5-m68k, libstdc++5-m68k-dev
Description: The GNU Standard C++ Library v3 (debugging files)
This package contains the shared library of libstdc++ compiled with
debugging symbols.
Package: gcc-m68k-3.2-soft-float
Architecture: any
Priority: optional
Depends: gcc-3.2-base, ${shlibs:Depends}, gcc-m68k (>= 1:3.2.3-0pre2), gcc-m68k (<< 1:3.2.4)
Replaces: gcc-soft-float-ss (<< 1:3.2.4)
Description: The soft-floating-point gcc libraries (arm)
These are versions of basic static libraries such as libgcc.a compiled
with the -msoft-float option, for CPUs without a floating-point unit.
Package: gcc-m68k-3.2-nof
Architecture: any
Priority: optional
Depends: gcc-3.2-base, ${shlibs:Depends}, gcc-m68k (>= 1:3.2.3-0pre2), gcc-m68k (<< 1:3.2.4)
Description: The no-floating-point gcc libraries (powerpc)
These are versions of basic static libraries such as libgcc.a compiled
with the -msoft-float option, for CPUs without a floating-point unit.
Reply to: