# HG changeset patch # User Ivo Raisr # Date 1475139261 25200 # Node ID ecb236c14ed7e8af33694c1af18df090c056f403 # Parent a189d9fb566c992a2acea31867ff5f33e807ac37 24654747 coolkey fails to build with studio 12.5 diff -r a189d9fb566c -r ecb236c14ed7 components/coolkey/Makefile --- a/components/coolkey/Makefile Wed Sep 14 07:52:16 2016 -0700 +++ b/components/coolkey/Makefile Thu Sep 29 01:54:21 2016 -0700 @@ -61,6 +61,9 @@ # configuration related patch needs aclocal to be regenerated COMPONENT_PREP_ACTION += (cd $(@D); autoconf); +# Allow building with Developer Studio 12.5. +CXX := $(CXX) -std=sun03 + # Do not add the SUNWspro area to the RUNPATH. Follow exactly what CC does. LD_UNSET.32.i386 = -R$(SPRO_VROOT)/lib LD_UNSET.32.sparc = -R$(SPRO_VROOT)/lib/$(MACH):$(SPRO_VROOT)/lib diff -r a189d9fb566c -r ecb236c14ed7 components/coolkey/patches/06-slot.cpp.patch --- a/components/coolkey/patches/06-slot.cpp.patch Wed Sep 14 07:52:16 2016 -0700 +++ b/components/coolkey/patches/06-slot.cpp.patch Thu Sep 29 01:54:21 2016 -0700 @@ -5,6 +5,24 @@ --- ORIGINAL/./src/coolkey/slot.cpp 2016-06-24 16:07:20.111616788 -0400 +++ ././src/coolkey/slot.cpp 2016-06-27 21:05:04.901200633 -0400 +@@ -25,7 +25,6 @@ + #include "PKCS11Exception.h" + #include + #include "slot.h" +-#include + #include "zlib.h" + #include "params.h" + +@@ -33,9 +32,7 @@ + + #define MIN(x, y) ((x) < (y) ? (x) : (y)) + +-using std::auto_ptr; + +- + #ifdef DEBUG + #define PRINTF(args) printf args + #else @@ -56,6 +56,34 @@ { 0x3B, 0x6F, 0x00, 0xFF, 0x52, 0x53, 0x41, 0x53, 0x65, 0x63, 0x75, 0x72, 0x49, 0x44, 0x28, 0x52, 0x29, 0x31, 0x30 };