FLTK logo

STR #3451

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 | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]

STR #3451

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:2 - Specific to an operating system
Subsystem:Build Files
Summary:Option to disable visibility on Linux
Version:1.4-feature
Created By:djcj
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 djcj
02:50 Feb 06, 2018
On Linux the visibility of symbols marked with FL_EXPORT is always set to "default".
I can only change this if I edit Fl_Export.H and add "-fvisibility=hidden" to the build flags.
Why would I want to hide _all_ symbols? I was trying something out by building a library that's statically linked against FLTK and dynamically loaded, so I only wanted _my_ symbols to be visible.
Would be nice if there was an option in the build settings or if I could at least override the macros in Fl_Export.H with some CPPFLAGS (well I guess I could use -DFl_Export_H -DFL_EXPORT -fvisibility=hidden, but an easier way would be appreciated).
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

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'.