Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470246 - =app-misc/nut-18.8 mixes CFLAGS and CXXFLAGS
Summary: =app-misc/nut-18.8 mixes CFLAGS and CXXFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: mixing-flags
  Show dependency tree
Reported: 2013-05-18 10:45 UTC by Chema Alonso Josa (RETIRED)
Modified: 2013-06-22 16:17 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Chema Alonso Josa (RETIRED) gentoo-dev 2013-05-18 10:45:19 UTC
Line 36 of Makefile:
CXXFLAGS := $(CFLAGS) `fltk-config --cxxflags`

x86_64-pc-linux-gnu-g++ -I.. `fltk-config --cxxflags` -march=native -O2 -Wno-pointer-sign -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/share/nut\" -DNOT_XFT   -c -o Nut.o
cc1plus: warning: command line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++ [enabled by default]
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-22 16:17:03 UTC
Oddly enough, even when Nut is built, we do not install it, and even then the DEPEND/RDEPEND on x11-libs/fltk is missing. I "fixed" it now (in 18.9) by not attempting to build Nut, and instead only build nut. If a users comes forward who wants Nut, that's for another time.

Fixing the actual bugs (mixing OPT/CFLAGS/CXXFLAGS randomly) in the Makefiles is probably something upstream should be informed of. The solution would be to use canonical variable names like INCLUDES.