GNU Info

Info Node: (mysql.info)HP-UX 10.20

(mysql.info)HP-UX 10.20


Next: HP-UX 11.x Prev: Binary notes-HP-UX Up: Other Unix Notes
Enter node , (file) or (file)node

HP-UX Version 10.20 Notes
.........................

There are a couple of small problems when compiling MySQL on HP-UX.  We
recommend that you use `gcc' instead of the HP-UX native compiler,
because `gcc' produces better code!

We recommend using gcc 2.95 on HP-UX.  Don't use high optimization
flags (like -O6) as this may not be safe on HP-UX.

Note that MIT-pthreads can't be compiled with the HP-UX compiler
because it can't compile `.S' (assembler) files.

The following configure line should work:

     CFLAGS="-DHPUX -I/opt/dce/include" CXXFLAGS="-DHPUX -I/opt/dce/include -felide-constructors -fno-exceptions -fno-rtti" CXX=gcc ./configure --with-pthread --with-named-thread-libs='-ldce' --prefix=/usr/local/mysql --disable-shared

If you are compiling `gcc' 2.95 yourself, you should NOT link it with
the DCE libraries (`libdce.a' or `libcma.a') if you want to compile
MySQL with MIT-pthreads.  If you mix the DCE and MIT-pthreads packages
you will get a `mysqld' to which you cannot connect.  Remove the DCE
libraries while you compile `gcc' 2.95!


automatically generated by info2www version 1.2.2.9