mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Changes to fix the Irix N32/egcs build; thanks to Jason Heirtzler <jasonh@cthulhu.engr.sgi.com>
This commit is contained in:
parent
b169e7f425
commit
72a97f2925
22
configure.in
22
configure.in
@ -261,11 +261,15 @@ alpha*-*-osf*)
|
||||
*-irix*)
|
||||
AC_DEFINE(IRIX6_3)
|
||||
DSO_LDOPTS='-elf -shared'
|
||||
MKSHLIB='$(CCC) $(DSO_LDOPTS)'
|
||||
MKSHLIB_FORCE_ALL='-all'
|
||||
MKSHLIB_UNFORCE_ALL=
|
||||
if test "$GCC"x != "yesx"; then
|
||||
CFLAGS="$CFLAGS -woff 3262"
|
||||
CXXFLAGS="$CXXFLAGS -woff 3262"
|
||||
if test -z "$GNU_CC"; then
|
||||
MKSHLIB_FORCE_ALL=-all
|
||||
MKSHLIB_UNFORCE_ALL=-none
|
||||
else
|
||||
MKSHLIB_FORCE_ALL=-Wl,-all
|
||||
MKSHLIB_UNFORCE_ALL=-Wl,-none
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -1214,11 +1218,19 @@ AC_ARG_WITH(nspr,
|
||||
[ --with-nspr=\$dir location of nspr headers and libraries],
|
||||
NSPR_DIR=$withval)
|
||||
|
||||
AC_ARG_WITH(nsprlib,
|
||||
[ --with-nsprlib=\$dir location of nspr libraries],
|
||||
NSPR_LIBDIR=$withval)
|
||||
|
||||
_SAVE_CFLAGS=$CFLAGS
|
||||
_SAVE_LDFLAGS=$LDFLAGS
|
||||
_SAVE_LIBS=$LIBS
|
||||
CFLAGS="$CFLAGS -I${NSPR_DIR}/include"
|
||||
if [ test "$NSPR_LIBDIR"x = "x" ]; then
|
||||
LDFLAGS="$LDFLAGS -L${NSPR_DIR}/lib $NSPR_LIBS"
|
||||
else
|
||||
LDFLAGS="$LDFLAGS -L${NSPR_LIBDIR} $NSPR_LIBS"
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING("for PR_GetCurrentThread in -lnspr21")
|
||||
LIBS="-lnspr21 $NSPR_LIBS $LIBS"
|
||||
@ -1277,8 +1289,12 @@ LDFLAGS=$_SAVE_LDFLAGS
|
||||
LIBS=$_SAVE_LIBS
|
||||
if [ test -n "${NSPR_DIR}" && test -d "${NSPR_DIR}" ]; then
|
||||
NSPR_CFLAGS="-I${NSPR_DIR}/include"
|
||||
if [ test "$NSPR_LIBDIR"x != "x" ]; then
|
||||
NSPR_LIBS="-L${NSPR_LIBDIR} ${NSPR_LIBS}"
|
||||
else
|
||||
NSPR_LIBS="-L${NSPR_DIR}/lib ${NSPR_LIBS}"
|
||||
fi
|
||||
fi
|
||||
dnl End of nspr tests
|
||||
dnl ========================================================
|
||||
|
||||
|
@ -56,6 +56,8 @@
|
||||
|
||||
#ifndef HAVE_SYS_CDEFS_H
|
||||
#include "cdefs.h"
|
||||
#else
|
||||
#include <cdefs.h>
|
||||
#endif
|
||||
#include "prtypes.h"
|
||||
|
||||
|
@ -208,9 +208,13 @@ jsmath.o: $(FDLIBM_LIBRARY) $(JSMATH_PRELINK)
|
||||
@$(MAKE_OBJDIR)
|
||||
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
||||
ld -r -o $@ $(JSMATH_PRELINK) $(FDLIBM_LIBRARY)
|
||||
else
|
||||
ifeq ($(OS_ARCH), IRIX)
|
||||
ld -n32 -r -o $@ $(JSMATH_PRELINK) $(FDLIBM_LIBRARY)
|
||||
else
|
||||
ld -r -o $@ $(JSMATH_PRELINK) $(FDLIBM_LIBRARY)
|
||||
endif
|
||||
endif
|
||||
|
||||
$(JSMATH_PRELINK): jsmath.c
|
||||
@$(MAKE_OBJDIR)
|
||||
|
@ -74,8 +74,8 @@ LIBS = \
|
||||
-lmozutil \
|
||||
-lxp \
|
||||
-lxpcom \
|
||||
$(NSPR_LIBS) \
|
||||
$(ZLIB_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
-lpwcac \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user