diff --git a/security/sks/Makefile b/security/sks/Makefile index 93a60784edcb2..823a8822b3e4c 100644 --- a/security/sks/Makefile +++ b/security/sks/Makefile @@ -33,6 +33,8 @@ post-extract: post-patch: @${REINPLACE_CMD} -e '/^CC=/d; /^CFLAGS=/s/=/+=/' ${WRKSRC}/bdb/Makefile + @${REINPLACE_CMD} -E '/^\+OCAML(C|OPT)=/s,$$, -unsafe-string,' \ + ${WRKSRC}/cryptokit-1.7-sks.patch pre-build: @cd ${WRKSRC} && test -f .depend || ${MAKE_CMD} dep diff --git a/security/sks/files/patch-Makefile b/security/sks/files/patch-Makefile index 86d7c495fa7ae..f7071a5b7447d 100644 --- a/security/sks/files/patch-Makefile +++ b/security/sks/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 2019-06-06 15:28:32 UTC +--- Makefile.orig 2021-09-05 17:11:36 UTC +++ Makefile -@@ -15,9 +15,8 @@ +@@ -15,16 +15,15 @@ # USA # CINCLUDES=-I`ocamlc -where` @@ -11,6 +11,14 @@ CXXFLAGS=-O3 $(CINCLUDES) -I . ifndef OCAMLC + OCAMLC=ocamlc + endif + ifndef OCAMLOPT +- OCAMLOPT=ocamlopt ++ OCAMLOPT=ocamlopt -unsafe-string + endif + ifndef CAMLP4O + CAMLP4O=camlp4o @@ -135,16 +134,16 @@ keyMerge.cmx: keyMerge.ml # Special targets