This commit is contained in:
Justin Wood 2011-08-10 05:18:44 -04:00
Родитель ed5cf85a6d 56cf7c44a6
Коммит 5b937d9314
7 изменённых файлов: 8 добавлений и 17 удалений

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

@ -115,7 +115,6 @@ class ExpandArgsMore(ExpandArgs):
content = ["%s\n" % obj for obj in objs] content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp ref = "@" + tmp
else: else:
os.close(fd)
os.remove(tmp) os.remove(tmp)
return return
self.tmp.append(tmp) self.tmp.append(tmp)

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

@ -1096,7 +1096,7 @@ $(IMPORT_LIBRARY): $(SHARED_LIBRARY)
endif endif
ifeq ($(OS_ARCH),OS2) ifeq ($(OS_ARCH),OS2)
$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS_DEPS) $(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS)
$(RM) $@ $(RM) $@
echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@ echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@
echo PROTMODE >> $@ echo PROTMODE >> $@

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

@ -2520,7 +2520,6 @@ ia64*-hpux*)
DSO_PIC_CFLAGS= DSO_PIC_CFLAGS=
AR=emxomfar AR=emxomfar
AR_FLAGS='r $@' AR_FLAGS='r $@'
AR_EXTRACT=
CFLAGS="$CFLAGS -Zomf" CFLAGS="$CFLAGS -Zomf"
CXXFLAGS="$CXXFLAGS -Zomf" CXXFLAGS="$CXXFLAGS -Zomf"
DSO_LDOPTS='-Zdll' 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} [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 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 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 EXPAND_LIBS_LIST_STYLE=linkerscript
else else
echo "conftest.${OBJ_SUFFIX}" > conftest.list 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 EXPAND_LIBS_LIST_STYLE=list
else else
EXPAND_LIBS_LIST_STYLE=none EXPAND_LIBS_LIST_STYLE=none

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

@ -503,13 +503,8 @@ ifdef MOZ_NATIVE_FFI
EXTRA_DSO_LDOPTS += $(MOZ_FFI_LIBS) EXTRA_DSO_LDOPTS += $(MOZ_FFI_LIBS)
else else
ifeq ($(OS_ARCH),OS2) 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 += \ SHARED_LIBRARY_LIBS += \
ctypes/libffi/.libs/ffi.$(LIB_SUFFIX) \ ctypes/libffi/.libs/ffi.a \
$(NULL) $(NULL)
else else
SHARED_LIBRARY_LIBS += \ SHARED_LIBRARY_LIBS += \

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

@ -115,7 +115,6 @@ class ExpandArgsMore(ExpandArgs):
content = ["%s\n" % obj for obj in objs] content = ["%s\n" % obj for obj in objs]
ref = "@" + tmp ref = "@" + tmp
else: else:
os.close(fd)
os.remove(tmp) os.remove(tmp)
return return
self.tmp.append(tmp) self.tmp.append(tmp)

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

@ -1096,7 +1096,7 @@ $(IMPORT_LIBRARY): $(SHARED_LIBRARY)
endif endif
ifeq ($(OS_ARCH),OS2) ifeq ($(OS_ARCH),OS2)
$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS_DEPS) $(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS)
$(RM) $@ $(RM) $@
echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@ echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@
echo PROTMODE >> $@ echo PROTMODE >> $@

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

@ -2437,7 +2437,6 @@ ia64*-hpux*)
DSO_PIC_CFLAGS= DSO_PIC_CFLAGS=
AR=emxomfar AR=emxomfar
AR_FLAGS='r $@' AR_FLAGS='r $@'
AR_EXTRACT=
CFLAGS="$CFLAGS -Zomf" CFLAGS="$CFLAGS -Zomf"
CXXFLAGS="$CXXFLAGS -Zomf" CXXFLAGS="$CXXFLAGS -Zomf"
DSO_LDOPTS='-Zdll' 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} [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 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 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 EXPAND_LIBS_LIST_STYLE=linkerscript
else else
echo "conftest.${OBJ_SUFFIX}" > conftest.list 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 EXPAND_LIBS_LIST_STYLE=list
else else
EXPAND_LIBS_LIST_STYLE=none EXPAND_LIBS_LIST_STYLE=none
@ -5981,7 +5980,7 @@ if test "$JS_HAS_CTYPES" -a -z "$MOZ_NATIVE_FFI"; then
fi fi
fi fi
if test "$OS_ARCH" = "OS2"; then 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 fi
# Use a separate cache file for libffi, since it does things differently # Use a separate cache file for libffi, since it does things differently