[linux-audio-dev] compiling LADSPA for Mac OS X

Steve Harris S.W.Harris at ecs.soton.ac.uk
Sun Apr 10 16:55:10 UTC 2005


I believe that you need to use the following CFLAGS:
-fno-common -flat_namespace -bundle -undefined suppress -lbundle1.o

I've not tried them, but a couple of people have reported sucessfully
building my plugins with the flags, you can get them automatically by doing
	./configure --enable-darwin
before building

- Steve

On Sun, Apr 10, 2005 at 05:23:37PM +0100, James McDermott wrote:
> Hi all,
> 
> has anyone compiled the LADSPA sdk for Mac OS X? I expect lots of
> people have, and that it's very easy..!
> 
> In the src directory, I type make and get this: 
> 
> ld: unknown flag: -shared
> 
> The targets in the makefile are:
> 
> ../plugins/%.so:	plugins/%.c ladspa.h
> 	$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
> 	$(LD) -o ../plugins/$*.so plugins/$*.o -shared
> 
> ../plugins/%.so:	plugins/%.cpp ladspa.h
> 	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
> 	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
> 
> So I guess ld is different on OS X, and looking at the ld man page, I
> guess maybe I need -dylib instead:
> 
> ../plugins/%.so:	plugins/%.c ladspa.h
> 	$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
> 	$(LD) -o ../plugins/$*.so plugins/$*.o -dylib
> 
> ../plugins/%.so:	plugins/%.cpp ladspa.h
> 	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
> 	$(CPP) -o ../plugins/$*.so plugins/$*.o -dylib
> 
> But now I get this error: 
> 
> ld: plugins/amp.o illegal undefined reference for multi module
> MH_DYLIB output file to symbol: dyld_stub_binding_helper from section
> (__DATA,__la_symbol_ptr) relocation entry: 0
> 
> and that's where I give up! But I guess there's a solution which is
> obvious to anyone who knows about dynamic libraries on a Mac?



More information about the Linux-audio-dev mailing list