Re: [PATCH 3/6] xfsprogs: define and use BUILD_CC in configure.ac for cross compilation

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Theodore Ts'o <tytso <at> mit.edu> writes:


> -	$(Q) $(CC) $(CFLAGS) -o gen_crc32table $<
> +	$(Q) $(BUILD_CC) $(CFLAGS) -o gen_crc32table $<

Try to cross compile to armv7a, but I hit a compilation failure for 
gen_crc32table.c:
gcc.real: error: unrecognized command line option '-mfpu=neon'
gcc.real: error: unrecognized command line option '-mfloat-abi=hard'

The problem is CFLAGS is set up for the cross compiler (armv7a-cros-linux-
gnueabi-gcc) and some options does not work on the native compiler.

(CFLAGS is " -O2 -O2 -pipe -march=armv7-a -mtune=cortex-a15 -mfpu=neon -
mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-
unwind-tables")

Looking into defining BUILD_CFLAGS.

Gwendal.



--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux