davidmoreno/onion

How to build libonion with DWARF debug information and optimizations?

bstarynk opened this issue · 1 comments

For the RefPerSys project (some artificial intelligence open source software), it would be useful to build libonion (on Linux/x86-64) with both optimizations and DWARF enabled. That is to compile libonion's C code with e.g. at least gcc -Wall -O -g (or perhaps gcc -Wall -O2 -g...) and the C++ code with e.g. g++ -Wall -O -g.

It would also be nice to have written instructions on how to choose the version of GCC; think of some Debian system having both /usr/bin/gcc-9 and /usr/bin/gcc-10.

Notice that I am unfamiliar with cmake

Thanks