On 9/9/25 11:03 Basile Starynkevitch wrote:
> Please mention on the FLTK website in an easily readable way how to
> compile FLTK 1.5 on Linux/Debian with both debug information and
> optimizations as a shared (not static) library
This is not something we would mention "on the FLTK website", this would
rather be in the documentation, and we can't publish special advice for
a particular system like "Linux/Debian".
> Since many recent GCC compilers accept all of `-fPIC -shared -O -g`
FLTK 1.5 uses CMake exclusively, and CMake adds appropriate compiler
switches (not only for gcc) automatically. What you want seems to be
done if you enable the build of shared libraries in "Debug" mode, i.e.
$ cmake -D CMAKE_BUILD_TYPE=Debug -D FLTK_BUILD_SHARED_LIBS=ON # ...
more options
This is all documented in README.CMake.txt which every user building the
library should consult anyway.
Or did I miss anything?
I don't think that it is appropriate to explicitly mention what you
proposed above. Other users would need to know which other compiler
flags *they* want to set. This is up to the user to decide.