From 9cba3b8fccf2f9d680d5ef7847689fe9cda2e294 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 11 Aug 2006 16:44:48 +0000 Subject: fix dynamic linker problem, not using flat_namespace OSX switch to dynamic_lookup, 10.3 only but much cleaner cosmetic changes to calm the compiler use normal assertion svn path=/trunk/; revision=5564 --- externals/grill/flext/buildsys/mac/pd/gnumake-gcc-ext.inc | 3 ++- externals/grill/flext/source/flstdc.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'externals/grill/flext') diff --git a/externals/grill/flext/buildsys/mac/pd/gnumake-gcc-ext.inc b/externals/grill/flext/buildsys/mac/pd/gnumake-gcc-ext.inc index 2c5e364a..fd63e346 100644 --- a/externals/grill/flext/buildsys/mac/pd/gnumake-gcc-ext.inc +++ b/externals/grill/flext/buildsys/mac/pd/gnumake-gcc-ext.inc @@ -1,6 +1,7 @@ EXT=pd_darwin -LDFLAGS += -bundle -bundle_loader $(PDBIN) +#LDFLAGS += -bundle -bundle_loader $(PDBIN) +LDFLAGS += -dylib -undefined dynamic_lookup TARGET=$(TARGETPATH)/$(TARGETNAME) INSTTARGET=$(TARGET) diff --git a/externals/grill/flext/source/flstdc.h b/externals/grill/flext/source/flstdc.h index b993dd96..13ac271c 100644 --- a/externals/grill/flext/source/flstdc.h +++ b/externals/grill/flext/source/flstdc.h @@ -28,6 +28,8 @@ WARRANTIES, see the file, "license.txt," in this distribution. #ifdef _MSC_VER #include +#else +#include #endif // PD stuff @@ -255,7 +257,8 @@ typedef t_symbol *t_symptr; #define FLEXT_WARN(str) _CrtDbgReport(_CRT_WARN,__FILE__,__LINE__,"flext",NULL) #define FLEXT_ERROR(str) _CrtDbgReport(_CRT_ERROR,__FILE__,__LINE__,"flext",NULL) #else -#define FLEXT_ASSERT(b) do { if(!(b)) error("Assertion failed: " #b " - in " __FILE__ " line %i",(int)__LINE__); } while(false) +#define FLEXT_ASSERT(b) assert(b) +//#define FLEXT_ASSERT(b) do { if(!(b)) error("Assertion failed: " #b " - in " __FILE__ " line %i",(int)__LINE__); } while(false) #define FLEXT_WARN(str) error("Warning: in " __FILE__ " line %i",(int)__LINE__) #define FLEXT_ERROR(str) error("Error: in " __FILE__ " line %i",(int)__LINE__) #endif -- cgit v1.2.1