Skip to content

Commit 35e02ae

Browse files
committed
assimp: fix gcc version condition
In commit 68cebed ("assimp: work around gcc bug on SuperH"), a work around was added to make the package build with gcc on SuperH. The condition included a test on the gcc version, which was mistakenly done on the host gcc version, while a test on the target gcc version was intended. Thanks to Peter Korsgaard for spotting the issue. Signed-off-by: Thomas Petazzoni <[email protected]>
1 parent 68cebed commit 35e02ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/assimp/assimp.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif
2020
# not passed) in gcc versions 5.x or older. The -Os optimization level
2121
# causes a "unable to find a register to spill in class
2222
# ‘GENERAL_REGS’" error. -O2 works fine.
23-
ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_HOST_GCC_AT_LEAST_6),y:y:)
23+
ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:y:)
2424
ASSIMP_CXXFLAGS += -O2
2525
endif
2626

0 commit comments

Comments
 (0)