diff -rup liboil-0.3.17.orig/configure.ac liboil-0.3.17/configure.ac --- liboil-0.3.17.orig/configure.ac 2011-04-08 18:04:41.000000000 +0200 +++ liboil-0.3.17/configure.ac 2011-04-08 18:23:29.000000000 +0200 @@ -188,8 +188,8 @@ fi AC_ARG_ENABLE(vfp, AC_HELP_STRING([--enable-vfp],[compile with Vector Floating-point unit support]), enable_vfp=$enableval,enable_vfp=yes) -if test "x$enable-vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then - AS_COMPILER_FLAG(["-Wa,-mfpu=vfp"], +if test "x$enable_vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then + AS_COMPILER_FLAG(["-mfpu=vfp"], [VFP_CFLAGS="$VFP_CFLAGS -mfpu=vfp"], true) #AS_COMPILER_FLAG(["-Wa,-mfloat-abi=softfp"], diff -rup liboil-0.3.17.orig/liboil/arm/Makefile.am liboil-0.3.17/liboil/arm/Makefile.am --- liboil-0.3.17.orig/liboil/arm/Makefile.am 2008-09-26 00:36:18.000000000 +0200 +++ liboil-0.3.17/liboil/arm/Makefile.am 2011-04-08 18:20:44.000000000 +0200 @@ -6,4 +6,5 @@ libarm_la_SOURCES = \ math_vfp_asm.S libarm_la_CFLAGS = $(LIBOIL_CFLAGS) $(VFP_CFLAGS) +libarm_la_CCASFLAGS = $(LIBOIL_CFLAGS) $(VFP_CFLAGS)