Fix to properly support Sun's WorkShop compilers. Thanks to Tim Rowley (tor@boojum.cs.brown.edu).

This commit is contained in:
briano%netscape.com 1999-04-30 21:43:50 +00:00
Родитель 60b8291d75
Коммит 33b180ac28
3 изменённых файлов: 11 добавлений и 10 удалений

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

@ -82,9 +82,10 @@ XCFLAGS = @XCFLAGS@
XLDFLAGS = @XLDFLAGS@ XLDFLAGS = @XLDFLAGS@
XLIBS = @XLIBS@ XLIBS = @XLIBS@
AS = @AS@ AR = @AR@
ASFLAGS = @ASFLAGS@ AS = @AS@
AS_DASH_C_FLAG = @AS_DASH_C_FLAG@ ASFLAGS = @ASFLAGS@
AS_DASH_C_FLAG = @AS_DASH_C_FLAG@
# Temp hack. It is not my intention to leave this crap in here for ever. # Temp hack. It is not my intention to leave this crap in here for ever.
# Im talking to fur right now to solve the problem without introducing # Im talking to fur right now to solve the problem without introducing

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

@ -231,7 +231,6 @@ INSTALL = $(NSINSTALL)
JAVA_PROG = java JAVA_PROG = java
else else
PATH_SEPARATOR := : PATH_SEPARATOR := :
AR = ar cr $@
ifndef USE_AUTOCONF ifndef USE_AUTOCONF
DLL_SUFFIX = so DLL_SUFFIX = so
endif endif

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

@ -171,6 +171,7 @@ AC_SUBST(GNU_CXX)
dnl set the defaults first dnl set the defaults first
dnl ======================================================== dnl ========================================================
AR='ar cr $@'
AS= AS=
AS_DASH_C_FLAG='-c' AS_DASH_C_FLAG='-c'
NS_USE_NATIVE= NS_USE_NATIVE=
@ -268,6 +269,7 @@ case "$target" in
MKSHLIB_FORCE_ALL='-z allextract' MKSHLIB_FORCE_ALL='-z allextract'
MKSHLIB_UNFORCE_ALL='' MKSHLIB_UNFORCE_ALL=''
DSO_LDOPTS='-G -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' DSO_LDOPTS='-G -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))'
AR='$(CXX) -xar -o $@'
AS='/usr/ccs/bin/as' AS='/usr/ccs/bin/as'
AS_DASH_C_FLAG='' AS_DASH_C_FLAG=''
@ -761,6 +763,10 @@ then
case "$target" in case "$target" in
*-*-solaris*) *-*-solaris*)
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
if test ! "$GNU_CC"; then
CFLAGS="$CFLAGS -mt"
CXXFLAGS="$CXXFLAGS -mt"
fi
;; ;;
*-*-linux*) *-*-linux*)
@ -769,17 +775,11 @@ then
alpha*-*-osf*) alpha*-*-osf*)
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
dnl if test ! "$GNU_CC"; then
dnl CFLAGS="$CFLAGS -pthread"
dnl CXXFLAGS="$CXXFLAGS -pthread"
dnl fi
;; ;;
*-*-freebsd*) *-*-freebsd*)
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE) AC_DEFINE(_THREAD_SAFE)
dnl CFLAGS="$CFLAGS -pthread"
dnl CXXFLAGS="$CXXFLAGS -pthread"
dnl -pthread links in -lc_r, so don't specify it explicitly. dnl -pthread links in -lc_r, so don't specify it explicitly.
if test "$ac_cv_have_dash_pthread" = "yes"; then if test "$ac_cv_have_dash_pthread" = "yes"; then
PTHREAD_LDFLAGS="" PTHREAD_LDFLAGS=""
@ -1427,6 +1427,7 @@ MOZ_ARG_DISABLE_BOOL(static,
NO_STATIC_LIB=1) NO_STATIC_LIB=1)
AC_SUBST(AR)
AC_SUBST(AS) AC_SUBST(AS)
AC_SUBST(ASFLAGS) AC_SUBST(ASFLAGS)
AC_SUBST(AS_DASH_C_FLAG) AC_SUBST(AS_DASH_C_FLAG)