summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-01-24 18:19:51 +0300
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2023-09-02 15:50:14 +0200
commit5423228148cf4d82bc3aa10cd61ec20ecdea0af5 (patch)
tree4e33b46b825306a8dbfae12410aaee493940b5d8
parent8554a287cf410d442d17654fd72f316fd1d67278 (diff)
tcl: fix build on macos
configure script detects Darwin and uses flags incompatible with Linux target build. This patch uses fakeuname tool if host OS is MacOS to avoid Darwin detection on target build. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> (cherry picked from commit 6e9c7010501df5bb03ebc7e61c96a842d8843783)
-rw-r--r--lang/tcl/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile
index 8efd4e771..5daf83403 100644
--- a/lang/tcl/Makefile
+++ b/lang/tcl/Makefile
@@ -23,6 +23,7 @@ PKG_LICENSE:=TCL
PKG_LICENSE_FILES:=license.terms
PKG_CPE_ID:=cpe:/a:tcl_tk:tcl_tk
+PKG_BUILD_DEPENDS:=HOST_OS_MACOS:fakeuname/host
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
@@ -31,6 +32,10 @@ HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
+ifeq ($(CONFIG_HOST_OS_MACOS),y)
+ include ../../utils/fakeuname/fakeuname.mk
+endif
+
define Package/tcl
SUBMENU:=Tcl
SECTION:=lang
@@ -52,6 +57,7 @@ endef
CONFIGURE_PATH := unix
CONFIGURE_VARS += \
+ $(if $(CONFIG_HOST_OS_MACOS),PATH=$(FAKEUNAME_PATH):$(PATH)) \
tcl_cv_strtod_unbroken=ok
CONFIGURE_ARGS += \