> I seem to recall that libtool used to define something when compiling > a shared library, but that this support was removed. Presumably this > was because there was some other way to accomplish the same thing. > > Does anyone know of a way to get libtool to behave the way I need?
You may add somewhere
#ifdef PIC #define __DYNAMIC__ #else #define __STATIC__ #endif
Not really foolproof though, cos there may be interactions on platforms which always use position-independent code and thus have no reason to #define PIC. Better to do
pic_flag="$pic_flag -D__DYNAMIC__"
and then add somewhere
#ifndef __DYNAMIC__ #define __STATIC__ #endif
Paolo
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
