On 3/27/19 4:13 AM, Pierre Labastie via blfs-dev wrote:
Note that for mesa -Db_ndebug=true can be used to disable assertions (the default is "if_release"). Then "-O2 -g" is still passed. You can also pass -Db_nebug=false with -Dbuildtype=release, of course... BTW, using gdb with "-O2 -g" does not work well for me (I'm not a great user of gdb, so I might miss some option there): stepping gets confused if some part of the code gets optimized out, or reordered for optimization.
If a package works or is debugged with with -O0 and fails with -O2 or -O3, then it is a compiler problem and VERY difficult to find/fix. It is not really up to us to try to find a workaround for something lake that. Fortunately it does not come up very often and is an argument to not try to optimize to a greater extent than the upstream developers.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
