Opened 21 months ago
Last modified 11 months ago
#66965 assigned defect
i2pd: fix building shared libs
Reported by: | herbygillot (Herby Gillot) | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | barracuda156, catap (Kirill A. Korinsky) | |
Port: | i2pd |
Description
https://github.com/PurpleI2P/i2pd/issues/1860
On a side note, do you have an idea how to fix building shared libs? I tried passing a standard CMake arg for that, tried explicitly setting a target, but the build fails badly at linking then. According to upstream, with Makefiles it works correctly (not sure if on macOS though and when last time tested).
Change History (3)
comment:1 Changed 21 months ago by kencu (Ken)
comment:2 Changed 11 months ago by catap (Kirill A. Korinsky)
Cc: | catap added |
---|
comment:3 Changed 11 months ago by catap (Kirill A. Korinsky)
See upstream issue: https://github.com/PurpleI2P/i2pd/issues/1860
Note: See
TracTickets for help on using
tickets.
In general, it is difficult to have cmake build both static and shared libs of one codebase. It is not a built-in cmake feature to do that, it is usually one or the other with cmake.
People have done it; you can look at their cmake files to see what tricks were done to allow it.
On the other hand, with Makefiles it is really pretty trivial to do that. Just another line and another target.