Skip to content

Commit

Permalink
Backout Bug 648134 due to bustage. (rather than back out the whole push)
Browse files Browse the repository at this point in the history
  • Loading branch information
Callek committed Aug 10, 2011
1 parent 65a8495 commit 56cf7c4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 17 deletions.
1 change: 0 additions & 1 deletion config/expandlibs_exec.py
Expand Up @@ -115,7 +115,6 @@ def makelist(self):
content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp
else:
os.close(fd)
os.remove(tmp)
return
self.tmp.append(tmp)
Expand Down
2 changes: 1 addition & 1 deletion config/rules.mk
Expand Up @@ -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 >> $@
Expand Down
5 changes: 2 additions & 3 deletions configure.in
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions js/src/Makefile.in
Expand Up @@ -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 += \
Expand Down
1 change: 0 additions & 1 deletion js/src/config/expandlibs_exec.py
Expand Up @@ -115,7 +115,6 @@ def makelist(self):
content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp
else:
os.close(fd)
os.remove(tmp)
return
self.tmp.append(tmp)
Expand Down
2 changes: 1 addition & 1 deletion js/src/config/rules.mk
Expand Up @@ -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 >> $@
Expand Down
7 changes: 3 additions & 4 deletions js/src/configure.in
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 56cf7c4

Please sign in to comment.