diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-04-13 11:24:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 11:24:02 +0200 |
commit | cb56e9b74532f5a0d1a95b8f4671628802cd6a51 (patch) | |
tree | 921cf61124eae25b0a6b1b9651fb19b546086a0d /var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch | |
parent | 6a8aa597170bc8730aed4306eabe1d2e37759e47 (diff) | |
download | spack-cb56e9b74532f5a0d1a95b8f4671628802cd6a51.tar.gz spack-cb56e9b74532f5a0d1a95b8f4671628802cd6a51.tar.bz2 spack-cb56e9b74532f5a0d1a95b8f4671628802cd6a51.tar.xz spack-cb56e9b74532f5a0d1a95b8f4671628802cd6a51.zip |
libbsd: fixes for %nvhpc (#29848)
Diffstat (limited to 'var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch b/var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch new file mode 100644 index 0000000000..bd84f5180e --- /dev/null +++ b/var/spack/repos/builtin/packages/libmd/nvhpc-aliases.patch @@ -0,0 +1,28 @@ +From 62be7d51eed4294541f70c2022c7f0ba3868e2e7 Mon Sep 17 00:00:00 2001 +From: Harmen Stoppels <harmenstoppels@gmail.com> +Date: Sat, 2 Apr 2022 23:20:32 +0200 +Subject: [PATCH] nvhpc doesn't support __attribute__ __alias + +--- + src/local-link.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/local-link.h b/src/local-link.h +index 7560c4f..e8906b9 100644 +--- a/src/local-link.h ++++ b/src/local-link.h +@@ -40,9 +40,11 @@ + * maintainable. + */ + #ifndef _MSC_VER ++#ifndef __NVCOMPILER + #define libmd_alias(alias, symbol) \ + extern __typeof(symbol) alias __attribute__((__alias__(#symbol))) + #endif ++#endif + + #ifdef __ELF__ + #define libmd_symver_default(alias, symbol, version) \ +-- +2.25.1 + |