How to compile (Linux, Debian or Ubuntu, x86-64) FOX toolkit (snapshot) with -g and -O2

Basile Starynkevitch <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
Hello all,

As you probably know,  on recent Linux distributions the recent GCC 
<https://gcvc.gnu.org/> or Clang compilers can be invoked with both -O2 
and -g (or even -g3)

For the *RefPerSys* project (symbolic AI, open source, GPLv3+; see 
*http://refpersys.org/* <http://refpersys.org/> and source code on 
https://github.com/RefPerSys/RefPerSys ...) we are considering using FOX 
toolkit, but we need DWARF debugging information for several important 
reasons:


  * manual debugging with GDB at first.
  * generation (at "runtime") of C++ code compiled to some dlopen
    <https://man7.org/linux/man-pages/man3/dlopen.3.html>-ed plugin. The
    generated C++ code would depend upon some rules entered thru the FOX
    graphical user interface
  * software introspection  and runtime reflection using Ian Lance
    Taylor libbacktrace <https://github.com/ianlancetaylor/libbacktrace>
    combioned with dladdr
    <https://man7.org/linux/man-pages/man3/dladdr.3.html>.
  * Hopefully, homoiconicity
    <https://en.wikipedia.org/wiki/Homoiconicity> of the /RefPerSys/
    system and rule language


I tried several times to configure FOX source tree /fox-1.7.80/ using 
./configure --enable-debug CFLAGS='-O2 -g3' CXXFLAGS='-O2 -g3' but the 
compilation of FOX did not show any -O flag.

This is on Ubuntu 21.10, with g++ being GCC 11.1


What am I doing wrong?


Thanks

-- 
Basile Starynkevitch<[email protected]>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.