FS#39341 - [glfw] Static libs

Attached to Project: Community Packages
Opened by Marty Plummer (ntzrmtthihu777) - Tuesday, 11 March 2014, 08:22 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 14 March 2014, 17:11 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Adds static libs to the glfw package for static linking
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 14 March 2014, 17:11 GMT
Reason for closing:  Won't fix
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 11 March 2014, 13:53 GMT
Frankly, why? We hardly do static linking with anything at all. What good would it do if you could static link glfw? In fact, we don't ship static libraries for anything by default.
Comment by Marty Plummer (ntzrmtthihu777) - Tuesday, 11 March 2014, 16:09 GMT
Not so, ruby-2.1.1-1 includes /usr/lib/libruby-static.a, a static library (and I've happily linked statically against it, too).
Reason? I can think of a few, for personal reasons, and I think others may find the same reasons to be applicable.
1. Glfw is just a fair amount of wrappers around gl anyways, and to have to install glfw for a single game could be irritating for some users.
2. Portability to other distros; I don't just want my game to be available to arch users and other distro users who use libs as new as us
3. Its just a 4.1mb file, so does it really make that much of a difference to include it?
Comment by Marty Plummer (ntzrmtthihu777) - Thursday, 13 March 2014, 07:00 GMT
In fact, ls /usr/lib/*.a | wc -l returns no less than 150 static libs on my system, and I'm certain I'm not the only one with a plethora of repo packages installed including them.
Comment by Doug Newgard (Scimmia) - Friday, 14 March 2014, 03:49 GMT
They are only added when there's no shared version.
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 14 March 2014, 17:11 GMT
I thought about this and I decided I won't fix this for the same reason we recently decided not to have other static libraries. I suggest you maintain a glfw-static package in AUR for users with a similar requirement.

Loading...