Douglas Bischoff's Fix for Plugins on OSX.
[blender.git] / release / plugins / bmake
index eeee92bc2f298d29f8ab6aa68ad978d8f5714e03..50f274ef3959422be96d22314a0eb6496a303d46 100644 (file)
@@ -74,7 +74,7 @@ elif ( test $UNAME = "Darwin" ) then
         CC="cc";
         CFLAGS="-fPIC -funsigned-char -O2 -fno-common";
         LD="cc";
-        LDFLAGS=" -bundle -bundle_loader ../../blender.app/Contents/MacOS/blender -lm";
+        LDFLAGS="-flat_namespace -bundle -bundle_loader ../../blender.app/Contents/MacOS/blender -ldl -lm";
         EXT="so";
 fi