summaryrefslogtreecommitdiffstats
path: root/package/openssl/001-do-not-build-docs.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2015-09-16 11:10:03 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-16 22:19:25 +0200
commitcfa74ee3218d4a39615870abb72a0b15bf21eba4 (patch)
treeafc0ff974036894c557b954889fee5c6c6ed368f /package/openssl/001-do-not-build-docs.patch
parentbb166374eeab72c9276a921875686549ac269667 (diff)
downloadbuildroot-cfa74ee3218d4a39615870abb72a0b15bf21eba4.tar.gz
buildroot-cfa74ee3218d4a39615870abb72a0b15bf21eba4.zip
libselinux: use correct definition of ARCH
The Makefile of libselinux performs the following check: ARCH := $(patsubst i%86,i386,$(shell uname -m)) ifneq (,$(filter i386,$(ARCH))) TLSFLAGS += -mno-tls-direct-seg-refs endif Which means that if the host machine is an x86, then TLSFLAGS will contain -mno-tls-direct-seg-refs. That command line option causes libselinux to fail when building it for target architectures where the compiler doesn't support that option, i.e. MIPS: mips-img-linux-gnu-gcc: error: unrecognized command line option ‘-mno-tls-direct-seg-refs’ So to fix that problem we can set the ARCH variable to $(KERNEL_ARCH), and then append it to the LIBSELINUX_MAKE_OPTS. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openssl/001-do-not-build-docs.patch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud