| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #3097
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Build Files |
Summary: | [patch] Add support for symbolic and sectioned builds to reduce size |
Version: | 1.3-current |
Created By: | cand |
Assigned To: | cand |
Fix Version: | 1.3-current (SVN: v10230) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | cand 05:20 Jun 30, 2014 |
| There are a few unused compiler features that would help the size of a shared libFLTK, as well as binaries linked statically to it.
In particular symbol export control on Linux is not yet enabled for shared builds, only on Windows. It will come in a future patch.
This patch enables -Bsymbolic-functions and a sectioned build if supported by the compiler+linker.
-Bsymbolic-functions drops the shared lib size by 3.5%. It disables the LD_PRELOAD overriding functionality for global functions only, a very rarely used feature.
The sectioned build does not change the shared lib size currently (it would if symbol export were enabled), but it helps statically linked applications quite a bit. Fluid's size dropped by 8.6% when linked against a sectioned libfltk.a, or a bit over 100kb. | |
|
#2 | cand 05:08 Aug 21, 2014 |
| Fixed in Subversion repository. | |
[ Return to Bugs & Features ]
|
| |