Skip to content

Commit

Permalink
node-ffi-napi: Using TARGET_SUFFIX instead of hardcoded gnu suffix
Browse files Browse the repository at this point in the history
merge: #1520

Signed-off-by: Hirokazu MORIKAWA <[email protected]>
  • Loading branch information
nxhack committed Mar 29, 2023
1 parent 940abb8 commit dafc1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-ffi-napi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=ffi-napi
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=4.0.3
PKG_RELEASE:=3
PKG_RELEASE:=4

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
Expand Down Expand Up @@ -44,7 +44,7 @@ NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst
TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
NPM_CACHE_DIR:=$(if $(call qstrip,$(CONFIG_NODEJS_NPM_CACHE_DIR)),$(call qstrip,$(CONFIG_NODEJS_NPM_CACHE_DIR)),$(TMP_DIR))

TARGET_CFLAGS+=$(FPIC) -I$(BUILD_DIR)/libffi-$(PKG_LIBFFI_VERSION)/$(GNU_TARGET_NAME)-gnu
TARGET_CFLAGS+=$(FPIC) -I$(BUILD_DIR)/libffi-$(PKG_LIBFFI_VERSION)/$(GNU_TARGET_NAME)-$(TARGET_SUFFIX)
TARGET_CPPFLAGS+=$(FPIC)

define Build/Compile
Expand Down

0 comments on commit dafc1b4

Please sign in to comment.