[CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Wed Sep 27 11:08:36 EDT 2006
On 2006-09-27 10:42+0200 Axel Roebel wrote:
> Hello,
>
> On Wednesday 27 September 2006 07:49, cmake-request at cmake.org wrote:
>> I don't think it matters whether the static library is linked with an
>> executable or a shared library. Certainly linking to an external shared
>> library has worked for me recently without me having to do anything
>> special. Thus, I am virtually positive that linking with a shared library
>> built by cmake should also work without you doing anything special.
>
> Sorry Alan you are wrong here!
Since there appears to be controversy about this, it is more important than
ever to see a simple example with the details (cmake code, simple C code for
two different libraries, cmake output, and verbose make output) of what is
going wrong when you do nothing special with the -fPIC flag.
As for being wrong, that would be the first time ever... :-)
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the CMake
mailing list