summaryrefslogtreecommitdiff
blob: c77339982fd6701dac92bd006e50e06ce8b4d559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/Makefile	2018-10-28 17:21:20.274137396 +0100
+++ b/Makefile	2018-10-28 17:21:47.696694473 +0100
@@ -16,11 +16,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) --includes)
 CFLAGS+= -I/usr/include/tcl$(TCL_VERSION)
 CFLAGS+= -DTCLPYTHON_VERSION=$(PKG_VERSION)
-LDFLAGS:= -shared -s
+LDFLAGS:= $(MYLDFLAGS) -shared
 LDFLAGS+= $(shell $(PYTHON_CONFIG) --libs)
 LDFLAGS+= -ltclstub$(TCL_VERSION)
 
@@ -62,7 +62,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)