diff -urN flex-2.5.35/debian/common/pkgvars.mk flex/debian/common/pkgvars.mk
--- flex-2.5.35/debian/common/pkgvars.mk	2013-08-15 03:04:20.000000000 +0000
+++ flex/debian/common/pkgvars.mk	2013-08-11 14:52:37.746234247 +0000
@@ -102,7 +102,7 @@
 define strip-exec
 find $(TMPTOP) -type f | while read i; do                                    \
    if file -b $$i | egrep -q "^ELF.*executable"; then                        \
-     strip --strip-all --remove-section=.comment --remove-section=.note $$i; \
+     $(DEB_HOST_GNU_TYPE)-strip --strip-all --remove-section=.comment --remove-section=.note $$i; \
    fi;                                                                       \
  done
 endef
@@ -110,7 +110,7 @@
 define strip-lib
 find $(TMPTOP) -type f | while read i; do                                         \
    if file -b $$i | egrep -q "^ELF.*shared object"; then                          \
-     strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \
+     $(DEB_HOST_GNU_TYPE)-strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \
    fi;                                                                            \
 done
 endef
--- flex-2.5.35/debian/local.mk	2013-08-15 03:04:20.000000000 +0000
+++ flex/debian/local.mk	2013-08-11 14:44:46.754224773 +0000
@@ -52,7 +52,7 @@
            fi;                                                             \
         fi
 	WARNINGS=none autoreconf --warnings=none -f -i 
-	ac_cv_lib_util_getloadavg=no ./configure   --verbose           \
+	ac_cv_lib_util_getloadavg=no ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure   --verbose           \
                 --prefix=$(PREFIX) $(confflags)
 	@echo done > $@
