summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2003-04-01 04:05:59 +0000
committerseawood%netscape.com <devnull@localhost>2003-04-01 04:05:59 +0000
commit5e7b8e024766c71da5d70c0fdf8319738b3e3b77 (patch)
tree704970e5e3f24b0ed079749f380c993bb9ba4de2
parent099d483a7a80ee83e2e32ff47004b43af3783ff9 (diff)
downloadnspr-hg-5e7b8e024766c71da5d70c0fdf8319738b3e3b77.tar.gz
Turn off optimizations for prprf.c on OS/2 to avoid PR_snprintf problem.MOZILLA_1_4a_RELEASE
Thanks to Michael Kaply <mkaply@us.ibm.com> for the patch. Bug #199901 r=wtc a=asa
-rw-r--r--pr/src/io/Makefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/pr/src/io/Makefile.in b/pr/src/io/Makefile.in
index 179656aa..e7316b38 100644
--- a/pr/src/io/Makefile.in
+++ b/pr/src/io/Makefile.in
@@ -81,5 +81,13 @@ DEFINES += -D_NSPR_BUILD_
include $(topsrcdir)/config/rules.mk
+# An OS/2 Optimization bug causes PR_snprintf() to produce wrong result.
+# This suppresses optimization for this single compilation unit.
+ifeq ($(MOZ_OS2_TOOLS),VACPP)
+$(OBJDIR)/prprf.obj: prprf.c
+ @$(MAKE_OBJDIR)
+ $(CC) -Fo$@ -c $(filter-out /O+, $(CFLAGS)) $<
+endif
+
export:: $(TARGETS)