[cfe-dev] How to build both static and shared libs for libc++?

Michael van der Westhuizen r1mikey at gmail.com
Sat Apr 6 00:26:22 PDT 2013


Hi Zack,

Do you have any patches?  I'd be happy to review your changes, test them here (on Ubuntu) and see if we can get them into the source tree.

Michael

On 06 Apr 2013, at 9:19 AM, Zack Perry <zack.perry at sbcglobal.net> wrote:

> Hi Charlies,
> 
> I didn't wish to be defeated so easily, so this evening, I studied more CMake/CPack online resources, and enhanced the libc++ bundled CMakeLists.txt some more with an add_library, a set_target_properties, and an install commands, I got both static and shared libs built and packaged as a libcxx-3.3.svn-0.el6.x86_64.rpm
> 
> $ rpm -qlp libcxx-3.3.svn-0.el6.x86_64.rpm |grep libc++
> /usr/lib/libc++.a
> /usr/lib/libc++.so
> /usr/lib/libc++.so.1
> /usr/lib/libc++.so.1.0
> 
> Once and for all. Mission accomplished 8-)
> 
> Regards,
> 
> Zack
> 
>> [...]
>>>  
>>> 
>> I don't think the CMake files in libc++ are set up to build
>> both shared and static at the same time. For now, you'll
>> have to build twice: once shared, and once static. (Someone
>> should really fix that. :)
>>  
>> Chip
>>  
> [...]
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list