[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Enigma-devel] BUG: tolua verirrt
From: |
Tacvek |
Subject: |
Re: [Enigma-devel] BUG: tolua verirrt |
Date: |
Fri, 8 Dec 2006 13:18:25 -0500 |
----- Original Message -----
From: "Ronald Lamprecht" <address@hidden>
To: "Tacvek" <address@hidden>
Cc: <address@hidden>; "Sidney Markowitz" <address@hidden>
Sent: Friday, December 08, 2006 12:45 PM
Subject: Re: [Enigma-devel] BUG: tolua verirrt
Hi,
Do you suggest just to add an empty dummy.cc to tolua_SOURCES and the svn
trunk/tools what would cause the file to exist for distribution and the
compiler/linker to use the desired flags?
That may well work. That is what I was askin about.
I've tred it and it appears to work. It does not seem to
harm --disbalecxxlua compiling in any way.
SVN diff:
Index: tools/dummy.cc
===================================================================
--- tools/dummy.cc (revision 0)
+++ tools/dummy.cc (revision 0)
@@ -0,0 +1 @@
+/* Dummy file to force linking using C++ compiler */
Property changes on: tools/dummy.cc
___________________________________________________________________
Name: svn:eol-style
+ native
Index: tools/Makefile.am
===================================================================
--- tools/Makefile.am (revision 511)
+++ tools/Makefile.am (working copy)
@@ -12,16 +12,14 @@
noinst_PROGRAMS = tolua $(TTFTOOL)
ttf2bmf_SOURCES = ttf2bmf.cc getopt.c getopt1.c getopt.h
-ttf2bmf_CXXFLAGS = @SDL_CFLAGS@ $(AM_CFLAGS)
+ttf2bmf_CXXFLAGS = @SDL_CFLAGS@ $(AM_CXXFLAGS)
ttf2bmf_LDADD = -lSDL_ttf $(AM_LDADD)
-tolua_SOURCES = tolua.c toluabind.c toluabind.h
+tolua_SOURCES = tolua.c toluabind.c toluabind.h dummy.cc
tolua_CFLAGS = -I$(top_srcdir)/lib-src/lua $(AM_CFLAGS)
tolua_LDADD = -L$(top_builddir)/lib-src/lua -llua $(AM_LDADD)
-tolua_CPPFLAGS= $(CPP_FLAGS)
if CXXLUA
-tolua_CPPFLAGS += -x c++ $(AM_CXXFLAGS) $(CXXFLAGS)
-tolua_LDADD += -lstdc++
+tolua_CFLAGS += -x c++ $(AM_CXXFLAGS) $(CXXFLAGS)
endif
Re: [Enigma-devel] BUG: tolua verirrt, Ronald Lamprecht, 2006/12/02