On Tue, Apr 23, 2013 at 01:49:57AM +0200, Dimstar / Dominique Leuenberger wrote:
Hi all,
another fun story you might be running in while looking at build failures.
In factory, %{optflags} now contains "-grecord-gcc-switches". A bunch of 'funny' configure and make scripts try to be smart and, if for example built with --disable-build, replace -g in CFLAGS with '' using most stupid sed syntax.
The result?
gcc -grecord-gcc-switches main.c -o myCoolApp becomes gcc record-gcc-switches main.c -o myCoolApp => and there is (hopefully in call cases) no file called record-gcc-switches, and thus the build fails.
In most cases this is visible in the error message (gcc: record-gcc-switches does not exist). In some cases this is a bit deeper burried.
Again, I think I hit most cases in Factory and sent proposal SRs to the dev projects.. up to the maintainers to decide if they like the fixes (usually I just removed this mangling... even with --disable-debug, we usually want -g specified so we can get meaningful -debuginfo packages)
Happy hacking... and happy chasing bugs!
-g should not be patched out in usual scenarios at least. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org