This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how do i turn off optimization in the build process

0

to enable better single step debugging.

asked 27 Nov '12, 21:35

protocolmagic's gravatar image

protocolmagic
1334
accept rate: 0%


One Answer:

6

Given that the question is tagged with 'gcc' ...

You can disable optimization the same way(s) as for any autofoo make process.... :)

One way:

CFLAGS='-g -O0' ./configure      ## season to taste with configure options as needed

answered 28 Nov '12, 05:36

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

edited 28 Nov '12, 05:42

it seems that you can also place the CFLAGS= after the .configure for wireshark.

(28 Nov '12, 16:35) protocolmagic