]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
build: Allow compiling xfsprogs in a cross compile environment
authorGwendal Grignou <gwendal@chromium.org>
Thu, 12 Jan 2017 20:12:29 +0000 (14:12 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 12 Jan 2017 20:12:29 +0000 (14:12 -0600)
commit0a71e38396304b4d1215ba0b51cd6ce8e33eb40d
treebd777e41306c84b63b675593cf305957071d92f8
parent3fe4a6dd012841c30a6d21c42e390947f8304480
build: Allow compiling xfsprogs in a cross compile environment

Without this patch, we are using the same compiler and options for the host
compiler (BUILD_CC) and the target compiler (CC), and we would get error
messages at compilation:
x86_64-pc-linux-gnu-gcc -O2 -O2 -pipe -march=armv7-a -mtune=cortex-a15 ...
x86_64-pc-linux-gnu-gcc.real: error: unrecognized command line option
'-mfpu=neon'
'-mfloat-abi=hard'
'-clang-syntax'
'-mfpu=neon'
'-mfloat-abi=hard'
'-clang-syntax'

Add BUILD_CC and BUILD_CFLAGS as precious variables to allow setting it up
from the ebuild.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
configure.ac
include/builddefs.in
libxfs/Makefile