From f72f4af5a9f85ed607507dea95ebfa6a62f98e89 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 20 Oct 2009 01:43:15 +0200 Subject: How was lua-interface-light.exe compiling before that... ? --- src/plugin-luaconfigfiles.cc | 4 ++++ src/plugin-luaftgl.cc | 4 ++++ src/plugin-luagl.cc | 4 ++++ src/plugin-luahandle.cc | 4 ++++ src/plugin-luahttp.cc | 4 ++++ src/plugin-lualibs.cc | 4 ++++ src/plugin-luaocci.cc | 4 ++++ src/plugin-luaosmesa.cc | 4 ++++ src/plugin-luarand.cc | 4 ++++ src/plugin-luaregex.cc | 4 ++++ src/plugin-luasmtp.cc | 4 ++++ src/plugin-luasql.cc | 4 ++++ src/plugin-luatask.cc | 4 ++++ src/plugin-luaxml.cc | 4 ++++ 14 files changed, 56 insertions(+) diff --git a/src/plugin-luaconfigfiles.cc b/src/plugin-luaconfigfiles.cc index 5b7ace8..5904a22 100644 --- a/src/plugin-luaconfigfiles.cc +++ b/src/plugin-luaconfigfiles.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luaftgl.cc b/src/plugin-luaftgl.cc index 95f23f0..16799a3 100644 --- a/src/plugin-luaftgl.cc +++ b/src/plugin-luaftgl.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luagl.cc b/src/plugin-luagl.cc index fe7c525..b823afe 100644 --- a/src/plugin-luagl.cc +++ b/src/plugin-luagl.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luahandle.cc b/src/plugin-luahandle.cc index 9049311..096ad17 100644 --- a/src/plugin-luahandle.cc +++ b/src/plugin-luahandle.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luahttp.cc b/src/plugin-luahttp.cc index 4304f24..68986b2 100644 --- a/src/plugin-luahttp.cc +++ b/src/plugin-luahttp.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-lualibs.cc b/src/plugin-lualibs.cc index 5a5de03..8fa4b11 100644 --- a/src/plugin-lualibs.cc +++ b/src/plugin-lualibs.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luaocci.cc b/src/plugin-luaocci.cc index 3d8a445..6c0127e 100644 --- a/src/plugin-luaocci.cc +++ b/src/plugin-luaocci.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luaosmesa.cc b/src/plugin-luaosmesa.cc index b5e24e2..2f4e787 100644 --- a/src/plugin-luaosmesa.cc +++ b/src/plugin-luaosmesa.cc @@ -14,6 +14,10 @@ #include #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luarand.cc b/src/plugin-luarand.cc index ea0ad30..5cb6db5 100644 --- a/src/plugin-luarand.cc +++ b/src/plugin-luarand.cc @@ -1,3 +1,7 @@ +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luaregex.cc b/src/plugin-luaregex.cc index 5bb9f41..5c2a2aa 100644 --- a/src/plugin-luaregex.cc +++ b/src/plugin-luaregex.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luasmtp.cc b/src/plugin-luasmtp.cc index 4c62060..00a713b 100644 --- a/src/plugin-luasmtp.cc +++ b/src/plugin-luasmtp.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luasql.cc b/src/plugin-luasql.cc index 0f38fb6..eba3595 100644 --- a/src/plugin-luasql.cc +++ b/src/plugin-luasql.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luatask.cc b/src/plugin-luatask.cc index b1b8e3d..ffd1814 100644 --- a/src/plugin-luatask.cc +++ b/src/plugin-luatask.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else diff --git a/src/plugin-luaxml.cc b/src/plugin-luaxml.cc index e6e579d..f2ba1b6 100644 --- a/src/plugin-luaxml.cc +++ b/src/plugin-luaxml.cc @@ -1,5 +1,9 @@ #include +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else -- cgit v1.2.3 From d3829c2102e2c92596857fe207509e92884e7ece Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 20 Oct 2009 12:30:17 -0700 Subject: Removing arch flags from the compilation flags for darwin. --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e7504fc..10086ed 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SYSTEM=$(shell uname) ifeq ($(SYSTEM),Darwin) -ARCH_FLAGS= +ARCH_FLAGS=-arch i386 -arch x86_64 -arch ppc SHARED_FLAGS=-dynamiclib SHARED_EXT=dylib SQL_LIBS=/sw/lib/mysql/libmysqlclient.a -lz @@ -41,7 +41,8 @@ INCLUDES = \ HAVES = -DHAVE_VSSCANF -DHAVE_LIBJPEG -DHAVE_FCNTL -DHAVE_MYSQL -DHAVE_UNISTD_H -DHAVE_FORK -DHAVE_PIPE -DHAVE_FSYNC -DHAVE_MALLOC_H -DHAVE_ASPRINTF -DHAVE_BYTESWAP_H -CPPFLAGS += $(INCLUDES) -O4 -fexceptions -DSTDC_HEADERS -DREADLINE_STATIC -DHOOK_STDS -DWORDS_LITTLEENDIAN $(ARCH_FLAGS) $(HAVES) -DUSE_OSMESA +CPPFLAGS_NO_ARCH += $(INCLUDES) -O4 -fexceptions -DSTDC_HEADERS -DREADLINE_STATIC -DHOOK_STDS -DWORDS_LITTLEENDIAN $(HAVES) -DUSE_OSMESA +CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS) LDFLAGS += $(ARCH_FLAGS) $(SHARED_FLAGS) -L/usr/lib/oracle/11.1.0.1/client/lib -L/usr/X11/lib -L/sw/lib -L/usr/local/instantclient ./lua-interface.$(SHARED_EXT) @@ -223,13 +224,13 @@ clean: rm -f *.o *.dep *.so *.dylib %.dep : %.c - $(CC) $(CPPFLAGS) -M -MF $@ $< + $(CC) $(CPPFLAGS_NO_ARCH) -M -MF $@ $< %.dep : %.cpp - $(CXX) $(CPPFLAGS) -M -MF $@ $< + $(CXX) $(CPPFLAGS_NO_ARCH) -M -MF $@ $< %.dep : %.cc - $(CXX) $(CPPFLAGS) -M -MF $@ $< + $(CXX) $(CPPFLAGS_NO_ARCH) -M -MF $@ $< %.c : %.clua bin2c $< $@ $(basename $@) -- cgit v1.2.3