Update of bug #20754 (project mypaint):

                  Status:                    None => In Progress            
                 Summary: brushlib: CFLAGS not respected (more generally, we
need a consistent way of passing CFLAGS, LDFLAGS etc.) => brushlib: cannot set
optimization level during build - command line option ordering problems

    _______________________________________________________

Follow-up Comment #1:

Correction: hilarity (and linker failures at runtime) ensues with -O0. -O1 is
fine.

Hopefully partly addressed in
https://gitorious.org/mypaint/mypaint/commit/c006e4e35d1354b4de4c9bed8f742d00468c4ef4
, which at least allows similar inconsistencies relating to Debian build
hardening to be fixed: http://bugs.debian.org/704927

This bug is still In Progress rather than Fixed because simply throwing more
options at it doesn't allow a -O0 build:


$ CFLAGS="-D__TEST__=MADE_APPARENT -O0" scons
[...]
gcc -o brushlib/operationqueue.os -c -std=c99 -D_POSIX_C_SOURCE=200809L
-D__TEST__=MADE_APPARENT -O0 -Wall -O3 -g -fPIC -DHAVE_JSON_C -DHAVE_GETTEXT
-Ibrushlib -I/usr/include/json brushlib/operationqueue.c
[...]


since it gets overridden by (json-c's?) later config options for pretty much
everything in brushlib/.


Retitling this bug.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20754>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to