gentoo/dev-tcltk/tclpython/files/tclpython-5.1-gentoo.patch
Alfredo Tupone b6ae6794c2
dev-tcltk/tclpython: no tcl-9. Version bump
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2026-03-06 17:28:35 +01:00

27 lines
845 B
Diff

--- a/Makefile 2018-10-28 17:21:20.274137396 +0100
+++ b/Makefile 2018-10-28 17:21:47.696694473 +0100
@@ -23,11 +23,11 @@
LIBRARY:= $(PKG_NAME).so.$(PKG_VERSION)
TCL_VERSION=$(shell echo 'puts $\$$tcl_version' | tclsh)
-CFLAGS:= -O2 -Wall -fPIC -DUSE_TCL_STUBS
+CFLAGS:= $(MYCFLAGS) -fPIC -DUSE_TCL_STUBS
CFLAGS+= $(shell $(PYTHON_CONFIG) --cflags)
CFLAGS+= -I/usr/include/tcl$(TCL_VERSION)
CFLAGS+= -DTCLPYTHON_VERSION=$(PKG_VERSION)
-LDFLAGS:= -shared -s
+LDFLAGS:= $(MYLDFLAGS) -shared
LDFLAGS+= $(PYTHON_CONFIG_LDFLAGS)
LDFLAGS+= -ltclstub$(TCL_VERSION)
@@ -69,7 +69,8 @@
$(OUTPUT_DIR)/pkgIndex.tcl:pkg/pkgIndex.tcl
cp -t $(dir $@) $^
-package: $(OUTPUT_DIR)/$(LIBRARY) $(OUTPUT_DIR)/pkgIndex.tcl
+package: $(OUTPUT_DIR)/$(LIBRARY)
+ $(MAKE) $(OUTPUT_DIR)/pkgIndex.tcl
ifneq ($(MAKECMDGOALS), clean)
-include $(DEPEND)