Source: gpm
Version: 1.20.4-4
Severity: wishlist
Tags: patch

The upstream "gpm" seems to need a very old version of autoconf which
does not properly support cross-compiling.  As a result, "./configure"
only tries "gcc" unless manually overridden with $CC.

The attached patch supplies the necessary CC override to allow a
cross-compile to actually work.  Please review and apply.

Cheers,
Kyle Moffett

--
Curious about my work on the Debian powerpcspe port?
I'm keeping a blog here: http://pureperl.blogspot.com/

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 
'stable-updates'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ru gpm-1.20.4/debian/rules gpm-1.20.4.new/debian/rules
--- gpm-1.20.4/debian/rules	2011-10-13 19:23:40.000000000 -0400
+++ gpm-1.20.4.new/debian/rules	2011-10-13 19:24:53.000000000 -0400
@@ -22,11 +22,12 @@
 
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
 	confflags += --build $(DEB_HOST_GNU_TYPE)
-	host_cc = gcc
+	CC = gcc
 else
 	confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-	host_cc = $(DEB_HOST_GNU_TYPE)-gcc
+	CC = $(DEB_HOST_GNU_TYPE)-gcc
 endif
+export CC
 
 configure: patch configure.in
 	autoconf
@@ -44,7 +45,7 @@
 	dh_testdir
 
 	# for gpm_has_mouse_control
-	$(MAKE) -C contrib/control CC=$(host_cc)
+	$(MAKE) -C contrib/control CC=$(CC)
 	$(MAKE)
 
 clean: unpatch clean-unpatched

Reply via email to