From 238fdc197d902e0c67372a56788124aff18da302 Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Sun, 16 Nov 2014 19:54:35 -0600 Subject: [PATCH] [libpng17] Added "-D_CRT_SECURE_NO_WARNINGS" to CFLAGS in scripts/makefile.vcwin32. Removed the obsolete $ARCH variable from scripts/makefile.darwin. --- ANNOUNCE | 6 ++++-- CHANGES | 4 +++- scripts/makefile.darwin | 7 +++---- scripts/makefile.vcwin32 | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 3c6f0e85e..ad1205cab 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.7.0beta42 - November 14, 2014 +Libpng 1.7.0beta42 - November 17, 2014 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -648,11 +648,13 @@ Version 1.7.0beta41 [November 7, 2014] png_do_swap(). Changed all "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */" -Version 1.7.0beta42 [November 14, 2014] +Version 1.7.0beta42 [November 17, 2014] The macros passed in the command line to Borland make were ignored if similarly-named macros were already defined in makefiles. This behavior is different from POSIX make and other make programs. Surround the macro definitions with ifndef guards (Cosmin). + Added "-D_CRT_SECURE_NO_WARNINGS" to CFLAGS in scripts/makefile.vcwin32. + Removed the obsolete $ARCH variable from scripts/makefile.darwin. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 1760be3dc..756035c00 100644 --- a/CHANGES +++ b/CHANGES @@ -4937,11 +4937,13 @@ Version 1.7.0beta41 [November 7, 2014] png_do_swap(). Changed all "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */" -Version 1.7.0beta42 [November 14, 2014] +Version 1.7.0beta42 [November 17, 2014] The macros passed in the command line to Borland make were ignored if similarly-named macros were already defined in makefiles. This behavior is different from POSIX make and other make programs. Surround the macro definitions with ifndef guards (Cosmin). + Added "-D_CRT_SECURE_NO_WARNINGS" to CFLAGS in scripts/makefile.vcwin32. + Removed the obsolete $ARCH variable from scripts/makefile.darwin. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/scripts/makefile.darwin b/scripts/makefile.darwin index cf33ddaa8..664f0c797 100644 --- a/scripts/makefile.darwin +++ b/scripts/makefile.darwin @@ -36,12 +36,11 @@ LN_SF=ln -sf RANLIB=ranlib CP=cp RM_F=/bin/rm -f -ARCH=-arch ppc -arch i386 -arch x86_64 CPPFLAGS=-I$(ZLIBINC) # CFLAGS=-W -Wall -O3 -funroll-loops -CFLAGS=-W -Wall -O -funroll-loops $(ARCH) -LDFLAGS=-L. -L$(ZLIBLIB) -lpng17 -lz $(ARCH) +CFLAGS=-W -Wall -O -funroll-loops +LDFLAGS=-L. -L$(ZLIBLIB) -lpng17 -lz INCPATH=$(prefix)/include LIBPATH=$(exec_prefix)/lib @@ -113,7 +112,7 @@ $(LIBSOMAJ): $(OBJSDLL) $(CC) -dynamiclib \ -install_name $(LIBPATH)/$(LIBSOMAJ) \ -current_version 17 -compatibility_version 17 \ - $(ARCH) -o $(LIBSOMAJ) \ + -o $(LIBSOMAJ) \ $(OBJSDLL) -L$(ZLIBLIB) -lz pngtest: pngtest.o $(LIBSO) diff --git a/scripts/makefile.vcwin32 b/scripts/makefile.vcwin32 index 621969239..2bd143cc0 100644 --- a/scripts/makefile.vcwin32 +++ b/scripts/makefile.vcwin32 @@ -16,7 +16,7 @@ CC = cl LD = link AR = lib CPPFLAGS = -I..\zlib -CFLAGS = -nologo -D_CRT_SECURE_NO_DEPRECATE -MD -O2 -W3 +CFLAGS = -nologo -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -MD -O2 -W3 LDFLAGS = -nologo ARFLAGS = -nologo CP = copy