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

A tiny patch for cross-gcc 3.3



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

I'm back after vacation season :)

When building packages for debian archive, libgcc from 3.3 is no longer 
needed because 3.4 provides it on most archs. However, when building cross 
compilers, libgcc1 is needed (e.g. to make deps be calculated correctly, 
to avoid build of both 3.3 and 3.4 just to get libgcc1).

Here is a little patch for gcc-3.3 source package that enables 
unconditional build of libgcc1 if building cross-compiler.

Please apply.

Also, if for whatever reasons you will do one more sarge upload, please 
apply there too. It's a one-lined that could hardly break anything, and 
will unbreak cross-compiler building in sarge gcc 3.3 version.

Nikita
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBJDMisTbPknTfAB4RAr/5AJ42YMvlrzXROSmgchoy5ejfuINQ7gCdGkw0
VGwyqIoUwdFnVgan4r/NhgI=
=+QDH
-----END PGP SIGNATURE-----
diff -urN gcc-3.3-3.3.4-9/debian/rules.defs gcc-3.3-3.3.4/debian/rules.defs
--- gcc-3.3-3.3.4-9/debian/rules.defs	2004-08-18 23:42:52.000000000 +0400
+++ gcc-3.3-3.3.4/debian/rules.defs	2004-08-18 23:43:28.000000000 +0400
@@ -435,6 +435,9 @@
 #ifeq ($(with_common_libs),yes)
 #  with_libgcc := yes
 #else
+ifdef DEB_CROSS
+  with_libgcc := yes
+else
   libgcc_archs := hppa m68k
   ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(libgcc_archs)))
     with_libgcc := yes
@@ -442,6 +445,7 @@
     with_libgcc := no
     with_shared_libgcc := no
   endif
+endif
 #endif
 
 # run testsuite --------------------

Reply to: