alist: fix eabi soft-float error

* golang-values.mk defaults to using soft-float (GOARM="5") on architectures that do not support fpu.
* However,`$(GO_PKG_TARGET_VARS)` by default passes `TARGET_CFLAGS` & `TARGET_LDFLAGS`.
* Which would break soft-float. To resolve the soft-float issue, it should be set to an undefined state.

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-04-09 14:03:05 +08:00
parent dd00c5eea7
commit e22fb508a5

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=alist PKG_NAME:=alist
PKG_VERSION:=3.33.0 PKG_VERSION:=3.33.0
PKG_WEB_VERSION:=3.33.0 PKG_WEB_VERSION:=3.33.0
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)?
@ -58,6 +58,14 @@ define Package/$(PKG_NAME)/description
A file list program that supports multiple storage, powered by Gin and Solidjs. A file list program that supports multiple storage, powered by Gin and Solidjs.
endef endef
ifeq ($(ARCH),arm)
ARM_CPU_FEATURES:=$(word 2,$(subst +,$(space),$(call qstrip,$(CONFIG_CPU_TYPE))))
ifeq ($(ARM_CPU_FEATURES),)
TARGET_CFLAGS:=
TARGET_LDFLAGS:=
endif
endif
ifneq ($(CONFIG_USE_MUSL),) ifneq ($(CONFIG_USE_MUSL),)
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
endif endif