From df8b78dbeac119dbfac14ae94cf03ddfce15bc5f Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 28 Oct 2007 23:55:26 +0000 Subject: [PATCH] [lua] Fix Examples/lua to pass SRCS for C tests rather than CXXSRCS. The code as it was happened to work on x86, but broke on x86_64 (and probably any other platforms which require -fPIC). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10067 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 5 +++++ Examples/lua/funcptr3/Makefile | 6 +++--- Examples/lua/functest/Makefile | 6 +++--- Examples/lua/pointer/Makefile | 6 +++--- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index f36ec2a0a..ad579fc14 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,11 @@ Version 1.3.32 (in progress) ============================ +10/28/2007: olly + [lua] Fix Examples/lua to pass SRCS for C tests rather than CXXSRCS. + The code as it was happened to work on x86, but broke on x86_64 (and + probably any other platforms which require -fPIC). + 10/28/2007: wsfulton [Java, C#] New approach for fixing uninitialised variable usage on error in director methods using the new templated initialisation function SwigValueInit(). diff --git a/Examples/lua/funcptr3/Makefile b/Examples/lua/funcptr3/Makefile index 6417ce20e..ac0fff43e 100644 --- a/Examples/lua/funcptr3/Makefile +++ b/Examples/lua/funcptr3/Makefile @@ -1,16 +1,16 @@ TOP = ../.. SWIG = $(TOP)/../preinst-swig -CXXSRCS = example.c +SRCS = example.c TARGET = example INTERFACE = example.i LIBS = all:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' lua static:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='mylua' INTERFACE='$(INTERFACE)' lua_static clean:: diff --git a/Examples/lua/functest/Makefile b/Examples/lua/functest/Makefile index 6417ce20e..ac0fff43e 100644 --- a/Examples/lua/functest/Makefile +++ b/Examples/lua/functest/Makefile @@ -1,16 +1,16 @@ TOP = ../.. SWIG = $(TOP)/../preinst-swig -CXXSRCS = example.c +SRCS = example.c TARGET = example INTERFACE = example.i LIBS = all:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' lua static:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='mylua' INTERFACE='$(INTERFACE)' lua_static clean:: diff --git a/Examples/lua/pointer/Makefile b/Examples/lua/pointer/Makefile index 6417ce20e..ac0fff43e 100644 --- a/Examples/lua/pointer/Makefile +++ b/Examples/lua/pointer/Makefile @@ -1,16 +1,16 @@ TOP = ../.. SWIG = $(TOP)/../preinst-swig -CXXSRCS = example.c +SRCS = example.c TARGET = example INTERFACE = example.i LIBS = all:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' lua static:: - $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ TARGET='mylua' INTERFACE='$(INTERFACE)' lua_static clean::