mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/openblas: fix build on mips64 n32
BR2_ARCH_IS_64 is set for mips64/mips64el even when the n32 ABI is used, so openblas was built with BINARY=64. Its build system then passes -mabi=64, which conflicts with the n32 sysroot: gnu/stubs.h:35:11: fatal error: gnu/stubs-n64_hard.h: No such file or directory For openblas, BINARY refers to the pointer size rather than to the architecture, and n32 uses 32-bit pointers, so BINARY=32 is correct there. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
3b5eadbf1f
commit
fd685fc8c2
@@ -49,7 +49,9 @@ ifeq ($(BR2_STATIC_LIBS),y)
|
|||||||
OPENBLAS_MAKE_OPTS += NO_SHARED=1
|
OPENBLAS_MAKE_OPTS += NO_SHARED=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_ARCH_IS_64),y)
|
# mips64 n32 is a 64-bit architecture, but with 32-bit pointers, so
|
||||||
|
# openblas must be built with BINARY=32
|
||||||
|
ifeq ($(BR2_ARCH_IS_64)$(BR2_MIPS_NABI32),y)
|
||||||
OPENBLAS_MAKE_OPTS += BINARY=64
|
OPENBLAS_MAKE_OPTS += BINARY=64
|
||||||
else
|
else
|
||||||
OPENBLAS_MAKE_OPTS += BINARY=32
|
OPENBLAS_MAKE_OPTS += BINARY=32
|
||||||
|
|||||||
Reference in New Issue
Block a user