[Vorbis] RE: Oggenc/oggdec on Mac OS X

Mikael Hillborg mikael at mhc.se
Tue Nov 15 14:25:59 PST 2005


Daniel Mario Vega wrote:
>
> That should work, the only problem is that the full library is included 
> in the final executable instead of only the needed/used library object 
> files (as a normal static linking would work).
> 
> Try this:   gcc -o oggenc oggenc.o foo.o -static -lvorbisenc -lvorbis 
> -logg -shared -lm
> 
> Only libraries put between "-static" and "-shared" will be statically 
> linked. The others (including system libraries) will be linked dynamically.

Sorry. Two errors:
Unrecognized option '-shared'.
can't locate file for: -lcrt0.o

Shouldn't it be possible to give a static option in the configure or 
make files?

Mike



More information about the Vorbis mailing list