Slowly working towards getting mozilla compiled/linking properly

using the Solaris native compilers.  This patch to configure.in
changes how we create shared libraries for Solaris from "ld" to
"CC", which can deal with templates and other C++ nastiness.

The other change removes the "inline" check, as the results of it
where being used in the wrong way.  It would see that "cc" didn't
understand "inline" and then force a "-Dinline=" option in the
CFLAGS, which are used for both C and C++ compile lines.  As you
can imagine, removing the "inline" keyword from the C++ compiles
was Bad News(tm).

Thanks to Tim Rowley <tor@boojum.cs.brown.edu> for the fix.
This commit is contained in:
ramiro%netscape.com 1998-12-06 07:07:56 +00:00
Родитель 8b57747a78
Коммит 8c78feeef3
1 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -120,6 +120,7 @@ case "$target" in
*-*-solaris*)
AC_DEFINE(BROKEN_QSORT)
if test -z "$GNU_CC"; then
MKSHLIB='$(CXX) -xar $(DSO_LDOPTS)'
DSO_LDOPTS='-G -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))'
fi ;;
@ -168,7 +169,21 @@ esac
dnl Checks for typedefs, structures, and compiler characteristics.
dnl ========================================================
AC_C_CONST
AC_C_INLINE
dnl
dnl The following blurb posted to n.p.m.patches by:
dnl Tim Rowley <tor@boojum.cs.brown.edu>
dnl
dnl The other change removes the "inline" check, as the results of it
dnl where being used in the wrong way. It would see that "cc" didn't
dnl understand "inline" and then force a "-Dinline=" option in the
dnl CFLAGS, which are used for both C and C++ compile lines. As you
dnl can imagine, removing the "inline" keyword from the C++ compiles
dnl was Bad News(tm).
dnl
dnl AC_C_INLINE
dnl
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T