
Annotations for building lyx-0.10.xy on AIX-3.2.5
There is a bug in /usr/ccs/bin/as and (several?) bugs in gcc-2.7.2
which prevent lyx from compiling out of the box.

as-bug: omit either -O or -g, at least for file "lyxparameters.C"

gcc-bugs: 1) gcc-2.7.2 has a bug concerning "const"-declarations
	     Solutions:
		a) ./configure --with-broken-const
		b) patch your gcc (patch is appended below)
	  2) somehow there are problems with "inline"-declarations in math_defs.h.
	     Solution:
		#ifdef _AIX32 in math_defs.h redefining "inline" plus
		compiler options -fkeep-inline-functions and -finline-functions.
		(else there will be errors while linking)

Recommended way to call configure: (Bournshell or Kornshell)

CXXFLAGS="-O -Wall -Wno-unused -finline-functions -fkeep-inline-functions" ./configure --with-broken-const

Good Luck,
 Joerg (petersen@pi1.physik.uni-stuttgart.de)

Appendix:
Patch for gcc-2.7.2 (const-bug):

*** clean-ss-951203/expr.c      Sun Nov 26 08:18:07 1995
--- ss-951203/expr.c    Mon Dec  4 11:41:18 1995
*************** expand_expr (exp, target, tmode, modifie
*** 4582,4587 ****
           through a pointer to const does not mean that the value there can
           never change.  Languages where it can never change should
           also set TREE_STATIC.  */
!       RTX_UNCHANGING_P (temp) = TREE_READONLY (exp) | TREE_STATIC (exp);
        return temp;
        }
--- 4582,4588 ----
           through a pointer to const does not mean that the value there can
           never change.  Languages where it can never change should
           also set TREE_STATIC.  */
!       RTX_UNCHANGING_P (temp) = TREE_READONLY (exp) & TREE_STATIC (exp);
        return temp;
        }
