From bede80d4996a6f85bb86e8eab95bc89bf8a32d87 Mon Sep 17 00:00:00 2001 From: Ilya Arzhannikov Date: Wed, 7 Apr 2021 22:09:17 +0200 Subject: Libgcrypt add cflags to tool build command (#17021) * libgcrypt add cflags to tool build command * x-add-version libgcrypt Co-authored-by: Ilya Arzhannikov --- ports/libgcrypt/CONTROL | 1 + ports/libgcrypt/fix-flags.patch | 13 +++++++++++++ ports/libgcrypt/portfile.cmake | 1 + 3 files changed, 15 insertions(+) create mode 100644 ports/libgcrypt/fix-flags.patch (limited to 'ports') diff --git a/ports/libgcrypt/CONTROL b/ports/libgcrypt/CONTROL index 1a1ae7916..af3a0fb17 100644 --- a/ports/libgcrypt/CONTROL +++ b/ports/libgcrypt/CONTROL @@ -1,5 +1,6 @@ Source: libgcrypt Version: 1.8.7 +Port-Version: 1 Homepage: https://gnupg.org/software/libgcrypt/index.html Description: A library implementing the so-called Assuan protocol Build-Depends: libgpg-error diff --git a/ports/libgcrypt/fix-flags.patch b/ports/libgcrypt/fix-flags.patch new file mode 100644 index 000000000..7ccf41c63 --- /dev/null +++ b/ports/libgcrypt/fix-flags.patch @@ -0,0 +1,13 @@ +diff --git a/cipher/Makefile.am b/cipher/Makefile.am +index 95c4510..d43350c 100644 +--- a/cipher/Makefile.am ++++ b/cipher/Makefile.am +@@ -112,7 +112,7 @@ gost-sb.h: gost-s-box + ./gost-s-box $@ + + gost-s-box: gost-s-box.c +- $(CC_FOR_BUILD) -o $@ $(srcdir)/gost-s-box.c ++ $(CC_FOR_BUILD) $(CFLAGS) -o $@ $(srcdir)/gost-s-box.c + + + if ENABLE_O_FLAG_MUNGING diff --git a/ports/libgcrypt/portfile.cmake b/ports/libgcrypt/portfile.cmake index 7c5784a01..658418e2c 100644 --- a/ports/libgcrypt/portfile.cmake +++ b/ports/libgcrypt/portfile.cmake @@ -8,6 +8,7 @@ vcpkg_from_github( HEAD_REF master PATCHES fix-pkgconfig.patch + fix-flags.patch ) vcpkg_configure_make( -- cgit v1.2.3