Bug 73164 - compiling lyx-1.3.5 with C-flags instead of C++-flags
Bug#: 73164 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: text-markup@gentoo.org Reported By: tpeland@tkukoulu.fi
Component: Applications
URL: 
Summary: compiling lyx-1.3.5 with C-flags instead of C++-flags
Keywords:  
Status Whiteboard: 
Opened: 2004-12-02 13:01 0000
Description:   Opened: 2004-12-02 13:01 0000
In lyx-1.3.5.ebuild there is line
 local flags="${CFLAGS}"
that should be
 local flags="${CXXFLAGS}"
as the program is c++ code.

This is important, as selecting wrong flags causes the compilation to fail.

I'm using: gcc-3.3.4-r1
CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2004-12-02 19:42:23 0000 -------
I applied the patch to lyx-1.3.5.ebuild.
Thanks for the bug report.