Source: atftp
Version: 0.8.0-8
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

atftp fails to cross build from source failing due to 
-Wincompatible-pointer-types as an error. Comparing with a native build, 
the same diagnostic is emitted, but as a warning rather than an error. 
That made me compare the compiler arguments and for some reason, the 
cross build dropped std=gnu89. Turns out configure.ac add this when 
${CC} matches gcc*|clang*, but the cross compiler is named TRIPLET-gcc. 
I propose extending the pattern match to cover for this. Please find a 
patch attached. Once applying it, atftp cross builds successfully.

Helmut
--- atftp-0.8.0.orig/configure.ac
+++ atftp-0.8.0/configure.ac
@@ -93,7 +93,7 @@
 fi
 
 case "$CC" in
-	gcc*|clang*) CFLAGS="$CFLAGS -std=gnu89"
+	gcc*|*-gcc*|clang*) CFLAGS="$CFLAGS -std=gnu89"
 	;;
 esac
 

Reply via email to