Re: Detecting Static/Shared builds

2009-09-04 Thread Monty Taylor
In my builds, libtool is doing: -fPIC -DPIC Which would mean you should be able to do: #ifdef PIC or the like. From reading the libtool.m4 file, it looks like it will not add -DPIC if you are using djgpp. Monty Jason Curl wrote: > Hello, > > I've set up a library that can be built on Window

Detecting Static/Shared builds

2009-09-04 Thread Jason Curl
Hello, I've set up a library that can be built on Windows (mingw32 or cygwin) or on a Unix type OS (e.g. Linux or Solaris). I've defined a header that checks if the WINDOWS_H file exists and if it does, I then define things like LIBAPI, WINAPI, DLLEXPORT. That all works when I build a shared