diff --git a/mozilla/nsprpub/configure b/mozilla/nsprpub/configure index 1531350af9b..f7aa661bbb1 100755 --- a/mozilla/nsprpub/configure +++ b/mozilla/nsprpub/configure @@ -4485,12 +4485,14 @@ EOF fi PR_MD_CSRCS=solaris.c LD=/usr/ccs/bin/ld - DSO_LDOPTS='-G -h $(notdir $@) -z combreloc' + MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' RESOLVE_LINK_SYMBOLS=1 if test -n "$GNU_CC"; then DSO_CFLAGS=-fPIC + DSO_LDOPTS='-B/usr/ccs/bin/ -shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs' else DSO_CFLAGS=-KPIC + DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs' fi if test -z "$GNU_AS"; then ASFLAGS="$ASFLAGS -Wa,-P" @@ -4503,8 +4505,8 @@ EOF CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" fi else - CC="$CC -xstrconst" - CXX="$CXX -Qoption cg -xstrconst" + CFLAGS="$CFLAGS -xstrconst" + CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst" if test -z "$MOZ_OPTIMIZE"; then CFLAGS="$CFLAGS -xs" CXXFLAGS="$CXXFLAGS -xs" @@ -4756,12 +4758,12 @@ esac if test -z "$SKIP_LIBRARY_CHECKS"; then echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "configure:4760: checking for dlopen" >&5 +echo "configure:4762: checking for dlopen" >&5 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dlopen=yes" else @@ -4803,7 +4805,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:4807: checking for dlopen in -ldl" >&5 +echo "configure:4809: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4811,7 +4813,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4850,13 +4852,13 @@ fi if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:4854: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:4856: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP @@ -4874,7 +4876,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@ -4898,12 +4900,12 @@ fi for ac_func in lchown strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4902: checking for $ac_func" >&5 +echo "configure:4904: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4965,7 +4967,7 @@ hpux*) if test -z "$GNU_CC"; then echo $ac_n "checking for +Olit support""... $ac_c" 1>&6 -echo "configure:4969: checking for +Olit support" >&5 +echo "configure:4971: checking for +Olit support" >&5 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4999,7 +5001,7 @@ esac echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:5003: checking for pthread_create in -lpthreads" >&5 +echo "configure:5005: checking for pthread_create in -lpthreads" >&5 echo " #include void *foo(void *v) { return v; } @@ -5021,7 +5023,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:5025: checking for pthread_create in -lpthread" >&5 +echo "configure:5027: checking for pthread_create in -lpthread" >&5 echo " #include void *foo(void *v) { return v; } @@ -5043,7 +5045,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5047: checking for pthread_create in -lc_r" >&5 +echo "configure:5049: checking for pthread_create in -lc_r" >&5 echo " #include void *foo(void *v) { return v; } @@ -5065,7 +5067,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5069: checking for pthread_create in -lc" >&5 +echo "configure:5071: checking for pthread_create in -lc" >&5 echo " #include void *foo(void *v) { return v; } @@ -5217,7 +5219,7 @@ if test -n "$USE_PTHREADS"; then rm -f conftest* ac_cv_have_dash_pthread=no echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:5221: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:5223: checking whether ${CC-cc} accepts -pthread" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -5240,7 +5242,7 @@ echo "configure:5221: checking whether ${CC-cc} accepts -pthread" >&5 ac_cv_have_dash_pthreads=no if test "$ac_cv_have_dash_pthread" = "no"; then echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:5244: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:5246: checking whether ${CC-cc} accepts -pthreads" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then diff --git a/mozilla/nsprpub/configure.in b/mozilla/nsprpub/configure.in index 2ade2cf6019..c05cc7a5957 100644 --- a/mozilla/nsprpub/configure.in +++ b/mozilla/nsprpub/configure.in @@ -1634,12 +1634,14 @@ mips-sony-newsos*) fi PR_MD_CSRCS=solaris.c LD=/usr/ccs/bin/ld - DSO_LDOPTS='-G -h $(notdir $@) -z combreloc' + MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' RESOLVE_LINK_SYMBOLS=1 if test -n "$GNU_CC"; then DSO_CFLAGS=-fPIC + DSO_LDOPTS='-B/usr/ccs/bin/ -shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs' else DSO_CFLAGS=-KPIC + DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs' fi if test -z "$GNU_AS"; then ASFLAGS="$ASFLAGS -Wa,-P" @@ -1652,8 +1654,8 @@ mips-sony-newsos*) CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" fi else - CC="$CC -xstrconst" - CXX="$CXX -Qoption cg -xstrconst" + CFLAGS="$CFLAGS -xstrconst" + CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst" if test -z "$MOZ_OPTIMIZE"; then CFLAGS="$CFLAGS -xs" CXXFLAGS="$CXXFLAGS -xs" diff --git a/mozilla/nsprpub/lib/ds/Makefile.in b/mozilla/nsprpub/lib/ds/Makefile.in index 3d9c0ea97f2..1b13bfea624 100644 --- a/mozilla/nsprpub/lib/ds/Makefile.in +++ b/mozilla/nsprpub/lib/ds/Makefile.in @@ -81,8 +81,12 @@ ifeq ($(OS_ARCH),SunOS) OS_LIBS = -lc MAPFILE = $(OBJDIR)/pldsmap.sun GARBAGE += $(MAPFILE) +ifdef NS_USE_GCC +MKSHLIB += -Wl,-M,$(MAPFILE) +else MKSHLIB += -M $(MAPFILE) endif +endif EXTRA_LIBS = $(LIBNSPR) diff --git a/mozilla/nsprpub/lib/libc/src/Makefile.in b/mozilla/nsprpub/lib/libc/src/Makefile.in index 6b8316c4473..2d3b47a7631 100644 --- a/mozilla/nsprpub/lib/libc/src/Makefile.in +++ b/mozilla/nsprpub/lib/libc/src/Makefile.in @@ -90,8 +90,12 @@ ifeq ($(OS_ARCH),SunOS) OS_LIBS = -lc MAPFILE = $(OBJDIR)/plcmap.sun GARBAGE += $(MAPFILE) +ifdef NS_USE_GCC +MKSHLIB += -Wl,-M,$(MAPFILE) +else MKSHLIB += -M $(MAPFILE) endif +endif EXTRA_LIBS = $(LIBNSPR) diff --git a/mozilla/nsprpub/pr/src/Makefile.in b/mozilla/nsprpub/pr/src/Makefile.in index 43809340ba8..03021909b41 100644 --- a/mozilla/nsprpub/pr/src/Makefile.in +++ b/mozilla/nsprpub/pr/src/Makefile.in @@ -71,14 +71,10 @@ OS_LIBS = -lm else # 4.1.3_U1 MAPFILE = $(OBJDIR)/nsprmap.sun GARBAGE += $(MAPFILE) +ifdef NS_USE_GCC +MKSHLIB += -Wl,-M,$(MAPFILE) +else MKSHLIB += -M $(MAPFILE) -# -# A "cpu" subdirectory will be created in this directory if NSDISTMODE -# is not "copy". (See the comments in pr/src/md/unix/Makefile.in for -# the reason.) This needs to be removed, too. -# -ifneq ($(NSDISTMODE),copy) -GARBAGE += cpu endif # # In Solaris 2.6 or earlier, -lrt is called -lposix4. @@ -101,7 +97,7 @@ endif # LOCAL_THREADS_ONLY endif # USE_PTHREADS ifeq ($(OS_TEST),sun4u) ifndef USE_64 -DSO_LDOPTS += -f \$$ORIGIN/cpu/\$$ISALIST/lib$(ULTRASPARC_LIBRARY)$(LIBRARY_VERSION).so +DSO_LDOPTS += -Wl,-f,\$$ORIGIN/cpu/\$$ISALIST/lib$(ULTRASPARC_LIBRARY)$(LIBRARY_VERSION).so endif endif # sun4u endif # 4.1.3_U1 diff --git a/mozilla/nsprpub/pr/src/md/unix/Makefile.in b/mozilla/nsprpub/pr/src/md/unix/Makefile.in index f2eb92a3aa6..a505fbd5684 100644 --- a/mozilla/nsprpub/pr/src/md/unix/Makefile.in +++ b/mozilla/nsprpub/pr/src/md/unix/Makefile.in @@ -113,6 +113,11 @@ ifneq ($(NSDISTMODE),copy) $(INSTALL) -m 444 $@ ../../cpu/sparcv8plus endif +ifneq ($(NSDISTMODE),copy) +clobber realclean clobber_all distclean:: + rm -rf ../../cpu +endif + $(ULTRASPARC_ASOBJS): $(ULTRASPARC_ASFILES) /usr/ccs/bin/as -o $@ -K PIC -P -D_ASM -D__STDC__=0 -xarch=v8plus $<