aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby/Makefile
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-02-06 23:39:39 +0300
committerLuiz Angelo Daros de Luca <luizluca@gmail.com>2022-02-06 21:46:17 -0300
commitc55092396ef9013391afbf5c5e27abe5c9c3eae2 (patch)
tree36dbf8c39e973bfb6ca7c53675a15efd827d6ad7 /lang/ruby/Makefile
parent126868d634205bbfb72fd539e4c5cf912bc788d0 (diff)
ruby: fix build on macos
1. ruby/host build fails on macos due to Apple ld generates warning if a folder from LDFLAGS is not exist. configure script catches this warning and fails. This patch disables ld warnings for macos 2. ruby build fails on macos due /bin/true is not exist on macos. This patch replaces /bin/true with true in OpenWrt Makefile Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Diffstat (limited to 'lang/ruby/Makefile')
-rw-r--r--lang/ruby/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile
index 500bb1632..2329c591e 100644
--- a/lang/ruby/Makefile
+++ b/lang/ruby/Makefile
@@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ruby
PKG_VERSION:=3.0.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
# First two numbes
PKG_ABI_VERSION:=$(subst $(space),.,$(wordlist 1, 2, $(subst .,$(space),$(PKG_VERSION))))
@@ -78,6 +78,12 @@ CONFIGURE_ARGS += --disable-jit-support
# Host JIT does work but it is not worth it
HOST_CONFIGURE_ARGS += --disable-jit-support
+# Apple ld generates warning if LD_FLAGS var includes path to lib that is not
+# exist (e.g. -L$(STAGING_DIR)/host/lib). configure script fails if ld generates
+# any output
+HOST_LDFLAGS += \
+ $(if $(CONFIG_HOST_OS_MACOS),-Wl$(comma)-w)
+
TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
# Ruby uses DLDFLAGS and not LDFLAGS for libraries. LDFLAGS is only for execs.
@@ -221,7 +227,7 @@ endef
# nothing to do
define Package/ruby-stdlib/install
- /bin/true
+ true
endef
define Package/ruby-abbrev/files