Package: gcc-m68hc1x
Severity: important
Version: 1:3.3.6+3.1+dfsg-3
Tags: patch
User: glibc-bsd-de...@lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

As far as I understand this, the gcc (3.3.6) checks whether
it also knows "--build=" and "--host". This should be irelevant
for cross-compiler. Please could you fake the knowledge by attached patch.
It also updates config.guess and config.sub just before the real
build starts.

Thanks in advance

                        Petr
diff -u gcc-m68hc1x-3.3.6+3.1+dfsg/debian/control gcc-m68hc1x-3.3.6+3.1+dfsg/debian/control
--- gcc-m68hc1x-3.3.6+3.1+dfsg/debian/control
+++ gcc-m68hc1x-3.3.6+3.1+dfsg/debian/control
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Arthur Loiret <arthur.loi...@gmail.com>
 Standards-Version: 3.7.3
-Build-Depends: debhelper (>= 6.0), binutils-m68hc1x (>= 1:2.15+2.92), autoconf2.13, libtool, gawk | awk, bison, flex, gettext, texinfo, zlib1g-dev, bzip2
+Build-Depends: debhelper (>= 6.0), binutils-m68hc1x (>= 1:2.15+2.92), autotools-dev, autoconf2.13, libtool, gawk | awk, bison, flex, gettext, texinfo, zlib1g-dev, bzip2
 XS-DM-Upload-Allowed: yes
 
 Package: gcc-m68hc1x
diff -u gcc-m68hc1x-3.3.6+3.1+dfsg/debian/rules gcc-m68hc1x-3.3.6+3.1+dfsg/debian/rules
--- gcc-m68hc1x-3.3.6+3.1+dfsg/debian/rules
+++ gcc-m68hc1x-3.3.6+3.1+dfsg/debian/rules
@@ -20,6 +20,8 @@
 	  patch -p0 < $$i ; \
 	done
 	mv gcc-3.3.6 src
+	cp /usr/share/misc/config.* src/boehm-gc/
+	cp /usr/share/misc/config.* src/
 	mkdir build
 	touch $@
 
only in patch2:
unchanged:
--- gcc-m68hc1x-3.3.6+3.1+dfsg.orig/kbsd.diffs
+++ gcc-m68hc1x-3.3.6+3.1+dfsg/kbsd.diffs
@@ -0,0 +1,19 @@
+--- gcc-3.3.6/gcc/config.gcc~
++++ gcc-3.3.6/gcc/config.gcc
+@@ -1173,13 +1173,14 @@
+ 		thread_file='single'
+ 	fi
+ 	;;
+-i[34567]86-*-linux*)	# Intel 80386's running GNU/Linux
++i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu)	
++			# Intel 80386's running GNU/Linux
+ 			# with ELF format using glibc 2
+ 			# aka GNU/Linux C library 6
+ 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
+ 	tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
+ 	;;
+-x86_64-*-linux*)
++x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
+ 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
+ 		 i386/x86-64.h i386/linux64.h"
+ 	tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"

Reply via email to