Package: alsaplayer
Version: 0.99.80-3.1
Severity: minor
Tags: patch
Hi!
Please note that by specifying both --build and --host to configure,
the configure script (incorrectly) assumes that you are cross
compiling, i.e. uses a compiler name of the form
$(ARCH)-linux-gnu-gcc, rather than just gcc. For more information,
see:
http://lists.debian.org/debian-devel/2007/11/msg00118.html
I have attached a patch, which uses the guidlines at:
http://wiki.debian.org/EmdebianGuide#Addingcross-builddetection
HTH, and thanks!
Kumar
diff -Nru --exclude changelog alsaplayer-0.99.80/debian/rules alsaplayer-0.99.80/debian/rules
--- alsaplayer-0.99.80/debian/rules 2009-08-19 22:44:21.000000000 -0500
+++ alsaplayer-0.99.80/debian/rules 2009-08-19 22:44:21.000000000 -0500
@@ -16,6 +16,12 @@
CFLAGS = -Wall -g
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -26,8 +32,7 @@
dh_testdir
cd m4 && rm -f audiofile.m4 esd.m4 gtk.m4 libmikmod.m4 libtool.m4 ogg.m4 vorbis.m4
CFLAGS="$(CFLAGS)" ./configure \
- --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
+ $(CROSS) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--enable-alsa --enable-oss --enable-esd --enable-nas \