On Mar 2, 2011, at 1:12, Michael Wild <[email protected]> wrote:

> On 03/02/2011 10:05 AM, Robert Bielik wrote:
>> Michael Wild skrev 2011-03-02 10:02:
>>> Probably this means to add -fvisibility=hidden and -static. However,
>>> -static will cause you to link everything statically, which will fail if
>>> you pass a dynamic library to target_link_libraries().
>>
>> Ok, thanks, I'll try add this as target link properties in
>> LINK_FLAGS_RELEASE. The linking in itself worked fine when changed
>> directly in Xcode.
>>
>> Regards,
>> /Rob
>
> You could also look at the link flags used by Xcode to find out what it
> does.
>
> Newer versions of g++ (4.5, I think) support -static-stdc++, but that is
> also only useful if you don't link against a shared C++ library.
>
> Michael
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

I did not think Apple supported statically linking to the c or c++
runtime libraries?

-----
Mike Jackson                     www.bluequartz.net
Principal Software Engineer       [email protected]
BlueQuartz Software               Dayton, Ohio
Sent from my mobile device.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to