On 1 December 2016 at 10:22, Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx> wrote: > On 2016.12.01 at 03:18 +0530, Prathamesh Kulkarni wrote: >> Hi, >> For bootstrap gcc build with ubsan, we have --with-build-config=bootstrap-ubsan, >> however I was wondering how to build only stage-1 gcc with ubsan ? >> I tried: >> CFLAGS="-fsanitize=undefined" CXXFLAGS="-fsanitize=undefined" make -j8 >> but that doesn't seem to work. > > CXX="g++ -w -fsanitize=undefined" ../gcc/configure That worked for me, thanks! Regards, Prathamesh > > -- > Markus