Please find in attachment my current proposition of patch. It remove the
obsolete -fgnu89-inline and use the same flags for build-udeb than for
build-deb to get the -O2 optimization.
This work, but I still don't understand why the code fail without
optimization.
Regards,
Jean-Christian de Rivaz
--- a/debian/rules 2010-11-07 02:57:24.000000000 +0100
+++ b/debian/rules 2010-11-07 02:59:01.000000000 +0100
@@ -89,14 +89,11 @@
ifeq (, $(CFLAGS))
CFLAGS = -g
-UDEB_CFLAGS = -g
ifeq (, $(findstring noopt, $(DEB_BUILD_OPTIONS)))
CFLAGS += -O2
-UDEB_CFLAGS += -Os
else
CFLAGS += -O0
-UDEB_CFLAGS += -O0
endif
endif
@@ -118,10 +115,6 @@
CONFFLAGS += --disable-pc98
endif
-# Workaround/fix bug #442308
-CFLAGS += -fgnu89-inline
-UDEB_CFLAGS += -fgnu89-inline
-
# Enable device-mapper only on Linux
ifeq (linux, $(DEB_BUILD_ARCH_OS))
CONFDEVMAPPER = --enable-device-mapper
@@ -186,7 +179,7 @@
dh_testdir
[ -d build-udeb ] || mkdir build-udeb
- cd build-udeb && CFLAGS="$(UDEB_CFLAGS)" ac_cv_header_execinfo_h=no ../configure --prefix=/usr \
+ cd build-udeb && CFLAGS="$(CFLAGS)" ac_cv_header_execinfo_h=no ../configure --prefix=/usr \
--sbindir=/sbin --libdir=/lib --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info --enable-shared --disable-static \
--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \