add -fpermissive for gcc 2.95.x

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@284 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 1999-11-03 13:53:54 +00:00
parent 546f5fcf51
commit 42c015f59e
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,9 @@
1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
* acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
is used.
* src/support/lyxstring.C: some changes from length() to rep->sz.
avoids a function call.

View File

@ -184,6 +184,7 @@ dnl Check the version of g++
elif test $ac_cv_prog_cxx_g = yes; then
case $gxx_version in
2.7*) CXXFLAGS="$lyx_opt";;
2.95.*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti -fpermissive";;
*) CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";;
esac
else