浏览代码

naiveproxy: fix regex for mips target

Tianling Shen 4 年之前
父节点
当前提交
b480ad28ca
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      naiveproxy/Makefile
  2. 1 1
      naiveproxy/src/init_env.sh

+ 1 - 1
naiveproxy/Makefile

@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=naiveproxy
 PKG_VERSION:=92.0.4515.107-1
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?

+ 1 - 1
naiveproxy/src/init_env.sh

@@ -87,6 +87,6 @@ case "${target_arch}" in
 	;;
 "mips"|"mips64"|"mipsel"|"mips64el")
 	naive_flags+=" use_gold=false is_cfi=false use_cfi_icall=false use_thin_lto=false mips_arch_variant=\"r2\""
-	[[ "${target_arch}" =~ "mips"|"mipsel" ]] && naive_flags+=" mips_float_abi=\"soft\" mips_tune=\"${cpu_type}\""
+	[[ "${target_arch}" =~ ^"mips"$|^"mipsel"$ ]] && naive_flags+=" mips_float_abi=\"soft\" mips_tune=\"${cpu_type}\""
 	;;
 esac