FLTK logo

STR #3097

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 cand
05:20 Jun 30, 2014
fltk-configure.diff
1k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.