dnl Set PIC flags. On some systems, -fpic/PIC is implied, so don't set
dnl anything to avoid a warning. on AIX make sure we always pass -lpthread
- dnl because this seems to be somehow required to make things work
+ dnl because this seems to be somehow required to make things work. Likewise
+ dnl DEC OSF.
case "$target" in
*aix* )
CXXFLAGSPIC=
LDFLAGS="$LDFLAGS -lpthread"
;;
+ *dec-osf* )
+ CXXFLAGSPIC="-fPIC"
+ LDFLAGSPIC="-fPIC"
+ LDFLAGS="$LDFLAGS -lpthread"
+ ;;
+
*)
CXXFLAGSPIC="-fPIC"
LDFLAGSPIC="-fPIC"
CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
- case "$target" in
+ case "$target" in
*aix* )
CXXFLAGSPIC=
LDFLAGSPIC=
+ LDFLAGS="$LDFLAGS -lpthread"
+ ;;
+
+ *dec-osf* )
+ CXXFLAGSPIC="-fPIC"
+ LDFLAGSPIC="-fPIC"
+ LDFLAGS="$LDFLAGS -lpthread"
;;
*)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams