diff --git a/package/assimp/assimp.mk b/package/assimp/assimp.mk index fd556e5962..cda02dda59 100644 --- a/package/assimp/assimp.mk +++ b/package/assimp/assimp.mk @@ -11,6 +11,11 @@ ASSIMP_LICENSE_FILES = LICENSE ASSIMP_DEPENDENCIES = zlib ASSIMP_INSTALL_STAGING = YES -ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF +# relocation truncated to fit: R_68K_GOT16O +ifeq ($(BR2_m68k),y) +ASSIMP_CXXFLAGS += -mxgot +endif + +ASSIMP_CONF_OPTS += -DASSIMP_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(ASSIMP_CXXFLAGS)" $(eval $(cmake-package))