Opened 14 months ago
Closed 13 months ago
#67950 closed enhancement (fixed)
libgpg-error: add a static lib to the installation
Reported by: | barracuda156 | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | haspatch | Cc: | |
Port: | libgpg-error |
Description
Is it possible to install both dynamic and static libs?
Change History (7)
comment:1 follow-up: 2 Changed 14 months ago by Schamschula (Marius Schamschula)
comment:2 Changed 14 months ago by barracuda156
Replying to Schamschula:
Yes:
--enable-static
. It is disabled by default.
Is if fine to enable it by default or make a non-default variant? Instead of locally hacking the port.
comment:3 follow-up: 4 Changed 14 months ago by Schamschula (Marius Schamschula)
I would prefer a non-default variant.
Static libraries should only be used for bootstrapping within MacPorts.
comment:4 Changed 14 months ago by barracuda156
Replying to Schamschula:
I would prefer a non-default variant.
I just thought that this will make it impossible to depend on it for another port. Still better that nothing, of course.
Static libraries should only be used for bootstrapping within MacPorts.
Numerous ports in fact install both.
comment:5 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
It has been a de-facto standard in MacPorts ports since forever to install static libraries as well, when possible, although I don't know who actually needs static libraries. (In cmake, it's not typically possible without some workarounds, but this software use autotools where it's typically easy, as shown in the PR.) We don't hide static libraries in a variant because that makes it impossible for it to be used as a dependency.
If you think this practice should be changed, please gain consensus about that on the mailing list first. We should be consistent about this across the ports collection.
comment:7 Changed 13 months ago by herbygillot (Herby Gillot)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Yes:
--enable-static
. It is disabled by default.