From 78e6390d0a2b36649d1d205746f02bf6fe8d1283 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 27 May 2024 14:41:56 -0400 Subject: [PATCH] fix(gnutls) closes #6245 --- projects/gnutls.org/package.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/projects/gnutls.org/package.yml b/projects/gnutls.org/package.yml index 8c581e22..26152098 100644 --- a/projects/gnutls.org/package.yml +++ b/projects/gnutls.org/package.yml @@ -21,20 +21,20 @@ build: linux: gnu.org/gcc: '*' freedesktop.org/pkg-config: '*' - script: | + script: # clang doesn't like the -march=all flag - if test "{{hw.platform}}+{{hw.arch}}" = "linux+aarch64"; then - cd lib/accelerated/aarch64/ - sed -i.bak -e 's/-march=all/-mcpu=generic/' Makefile.am Makefile.in - rm Makefile.am.bak Makefile.in.bak - cd ../../.. - fi + - run: sed -i -e 's/-march=all/-mcpu=generic/' Makefile.am Makefile.in + if: linux/aarch64 + working-directory: lib/accelerated/aarch64/ #FIXME: use similar logic to the one in openssl.org/x509_def.c to # locate {{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem - ./configure --prefix={{ prefix }} --disable-guile - make --jobs {{ hw.concurrency }} install + - ./configure --prefix={{ prefix }} --disable-guile + - make --jobs {{ hw.concurrency }} install + env: + darwin: + CFLAGS: $CFLAGS -Wno-implicit-int test: gnutls-cli --x509cafile={{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem tea.xyz <<< "GET /"