cicku / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Building a static library of libproxy (i.e. libproxy.a) #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to build a static library of libproxy.  Has anyone tried doing this? 
 I've tried hacking the cmake files to do this, as follows - 

What steps will reproduce the problem?
1. updated /libproxy/cmake/libproxy.cmk with 'STATIC' instead of 'SHARED' in 
line 1 (add_library(...) )
2. added this line set_target_properties(libproxy PROPERTIES COMPILE_FLAGS 
-fPIC) to the same file
3. Set -fvisibility=default in /libmodman/CMakeLists.txt

What is the expected output? What do you see instead?
Expected - the see libproxy.a with all the symbols visible.  Instead, several 
libmodman symbols in libproxy.a are undefined, which in turn causes by program 
to crash at run-time.

What version of the product are you using? On what operating system?
0.4.11, build on Ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by arunsvic...@gmail.com on 5 Sep 2013 at 9:14

GoogleCodeExporter commented 8 years ago
I don't think a shared library is what we want to see...
Also, it only gives you ''half' the benefit, as libproxy is modular by design, 
alloweing itself to load modules to detect configurations as it's being loaded.

Original comment by dominiqu...@gmail.com on 8 Sep 2013 at 6:20