Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517176 - =media-gfx/librecad-2.0.3 does not respect CXXFLAGS (-g)
Summary: =media-gfx/librecad-2.0.3 does not respect CXXFLAGS (-g)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sławek Lis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2014-07-15 17:35 UTC by Chema Alonso Josa (RETIRED)
Modified: 2017-01-16 09:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chema Alonso Josa (RETIRED) gentoo-dev 2014-07-15 17:35:27 UTC
The -g flag should be dropped from the build

[...]
cd jwwlib/ && make -f Makefile 
make[2]: Entering directory `/var/tmp/portage/media-gfx/librecad-2.0.3/work/LibreCAD-2.0.3/libraries/jwwlib'
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -std=c++11 -g -Wall -W -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../../generated/lib/jwwlib/moc -o ../../generated/lib/jwwlib/obj/dl_writer_ascii.o src/dl_writer_ascii.cpp
[...]
Comment 1 Sławek Lis (RETIRED) gentoo-dev 2014-07-16 05:01:19 UTC
In file 'common.pri' there is definition:


    QMAKE_CXXFLAGS_DEBUG += -std=c++11 -g
    QMAKE_CXXFLAGS += -std=c++11 -g


which makes a '-g' flag obligatory in any case (debug and release).
I don't see any sense of this, but I'd like to ask upstream before patching that.
Comment 2 Chema Alonso Josa (RETIRED) gentoo-dev 2014-07-16 19:58:44 UTC
That prevents the user from using other debug flag, for instance:

CXXFLAGS="-ggdb" emerge -1 librecad

x86_64-pc-linux-gnu-g++ -c -ggdb -std=c++11 -g -Wall -W -fPIC -D_REENTRANT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../../generated/lib/jwwlib/moc -o ../../generated/lib/jwwlib/obj/dl_writer_ascii.o src/dl_writer_ascii.cpp

Would use -g rather than -ggdb