From c029086bf9de89e1f667697e53a7a25bb9ee3def Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 10 Aug 2011 05:18:24 -0400 Subject: [PATCH] Backout Bug 648134 due to bustage. (rather than back out the whole push) --- config/expandlibs_exec.py | 1 - config/rules.mk | 2 +- configure.in | 5 ++--- js/src/Makefile.in | 7 +------ js/src/config/expandlibs_exec.py | 1 - js/src/config/rules.mk | 2 +- js/src/configure.in | 7 +++---- 7 files changed, 8 insertions(+), 17 deletions(-) diff --git a/config/expandlibs_exec.py b/config/expandlibs_exec.py index ff5e7a7a4cb..20cbac679ef 100644 --- a/config/expandlibs_exec.py +++ b/config/expandlibs_exec.py @@ -115,7 +115,6 @@ class ExpandArgsMore(ExpandArgs): content = ["%s\n" % obj for obj in objs] ref = "@" + tmp else: - os.close(fd) os.remove(tmp) return self.tmp.append(tmp) diff --git a/config/rules.mk b/config/rules.mk index 0824875a4b2..048f3f734a2 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -1096,7 +1096,7 @@ $(IMPORT_LIBRARY): $(SHARED_LIBRARY) endif ifeq ($(OS_ARCH),OS2) -$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS_DEPS) +$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS) $(RM) $@ echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@ echo PROTMODE >> $@ diff --git a/configure.in b/configure.in index 9c5cfc1396a..05aa8f25712 100644 --- a/configure.in +++ b/configure.in @@ -2520,7 +2520,6 @@ ia64*-hpux*) DSO_PIC_CFLAGS= AR=emxomfar AR_FLAGS='r $@' - AR_EXTRACT= CFLAGS="$CFLAGS -Zomf" CXXFLAGS="$CXXFLAGS -Zomf" DSO_LDOPTS='-Zdll' @@ -8127,11 +8126,11 @@ AC_CACHE_CHECK(what kind of list files are supported by the linker, [echo "int main() {return 0;}" > conftest.${ac_ext} if AC_TRY_COMMAND(${CC-cc} -o conftest.${OBJ_SUFFIX} -c $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&2) && test -s conftest.${OBJ_SUFFIX}; then echo "INPUT(conftest.${OBJ_SUFFIX})" > conftest.list - if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $CFLAGS $LDFLAGS conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then + if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then EXPAND_LIBS_LIST_STYLE=linkerscript else echo "conftest.${OBJ_SUFFIX}" > conftest.list - if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $CFLAGS $LDFLAGS @conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then + if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $LDFLAGS @conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then EXPAND_LIBS_LIST_STYLE=list else EXPAND_LIBS_LIST_STYLE=none diff --git a/js/src/Makefile.in b/js/src/Makefile.in index 1edf017d53c..bc77d69d266 100644 --- a/js/src/Makefile.in +++ b/js/src/Makefile.in @@ -503,13 +503,8 @@ ifdef MOZ_NATIVE_FFI EXTRA_DSO_LDOPTS += $(MOZ_FFI_LIBS) else ifeq ($(OS_ARCH),OS2) -libs:: ctypes/libffi/.libs/ffi.$(LIB_SUFFIX) - -ctypes/libffi/.libs/ffi.$(LIB_SUFFIX): ctypes/libffi/.libs/$(LIB_PREFIX)ffi.a - emxomf $< - SHARED_LIBRARY_LIBS += \ - ctypes/libffi/.libs/ffi.$(LIB_SUFFIX) \ + ctypes/libffi/.libs/ffi.a \ $(NULL) else SHARED_LIBRARY_LIBS += \ diff --git a/js/src/config/expandlibs_exec.py b/js/src/config/expandlibs_exec.py index ff5e7a7a4cb..20cbac679ef 100644 --- a/js/src/config/expandlibs_exec.py +++ b/js/src/config/expandlibs_exec.py @@ -115,7 +115,6 @@ class ExpandArgsMore(ExpandArgs): content = ["%s\n" % obj for obj in objs] ref = "@" + tmp else: - os.close(fd) os.remove(tmp) return self.tmp.append(tmp) diff --git a/js/src/config/rules.mk b/js/src/config/rules.mk index 0824875a4b2..048f3f734a2 100644 --- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -1096,7 +1096,7 @@ $(IMPORT_LIBRARY): $(SHARED_LIBRARY) endif ifeq ($(OS_ARCH),OS2) -$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS_DEPS) +$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS) $(RM) $@ echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@ echo PROTMODE >> $@ diff --git a/js/src/configure.in b/js/src/configure.in index 63ead6de8ea..97712874e0c 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -2437,7 +2437,6 @@ ia64*-hpux*) DSO_PIC_CFLAGS= AR=emxomfar AR_FLAGS='r $@' - AR_EXTRACT= CFLAGS="$CFLAGS -Zomf" CXXFLAGS="$CXXFLAGS -Zomf" DSO_LDOPTS='-Zdll' @@ -5369,11 +5368,11 @@ AC_CACHE_CHECK(what kind of list files are supported by the linker, [echo "int main() {return 0;}" > conftest.${ac_ext} if AC_TRY_COMMAND(${CC-cc} -o conftest.${OBJ_SUFFIX} -c $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&2) && test -s conftest.${OBJ_SUFFIX}; then echo "INPUT(conftest.${OBJ_SUFFIX})" > conftest.list - if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $CFLAGS $LDFLAGS conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then + if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then EXPAND_LIBS_LIST_STYLE=linkerscript else echo "conftest.${OBJ_SUFFIX}" > conftest.list - if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $CFLAGS $LDFLAGS @conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then + if AC_TRY_COMMAND(${CC-cc} -o conftest${ac_exeext} $LDFLAGS @conftest.list $LIBS 1>&2) && test -s conftest${ac_exeext}; then EXPAND_LIBS_LIST_STYLE=list else EXPAND_LIBS_LIST_STYLE=none @@ -5981,7 +5980,7 @@ if test "$JS_HAS_CTYPES" -a -z "$MOZ_NATIVE_FFI"; then fi fi if test "$OS_ARCH" = "OS2"; then - ac_configure_args="$ac_configure_args AR=ar" + ac_configure_args="$ac_configure_args CFLAGS=-Zomf AR=emxomfar" fi # Use a separate cache file for libffi, since it does things differently