Skip to content

Commit cfbb9f1

Browse files
committed
Add defines / feature flags to SWIG call
1 parent 682cf0f commit cfbb9f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ PKG_CFLAGS = @PKG_CFLAGS@
167167
# compiled with.
168168
#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
169169
DEFS = @DEFS@ $(PKG_CFLAGS)
170+
SWIGDEFS = @DEFS@
170171

171172
# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
172173
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
@@ -209,7 +210,7 @@ all: @SWIG_WRAP@ binaries libraries
209210
wrap: $(SWIGOUTPUT)
210211

211212
$(SWIGOUTPUT): $(SWIGINTERFACE)
212-
$(SWIG) -tcl -pkgversion $(PACKAGE_VERSION) -module $(PACKAGE_NAME) -o $(SWIGOUTPUT) $(SWIGINTERFACE)
213+
$(SWIG) -tcl -pkgversion $(PACKAGE_VERSION) -module $(PACKAGE_NAME) $(SWIGDEFS) -o $(SWIGOUTPUT) $(SWIGINTERFACE)
213214

214215
#========================================================================
215216
# The binaries target builds executable programs, Windows .dll's, unix

0 commit comments

Comments
 (0)