From c302b7a5966908b3a5db1ef3ccd3af460b847675 Mon Sep 17 00:00:00 2001 From: Homo Date: Mon, 16 Dec 2024 10:47:32 +0200 Subject: gnu: hugs: Fix build with GCC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/patches/hugs-fix-build.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/hugs.scm (hugs)[source]: Use it. [native-inputs]: Remove. Change-Id: I8b17f6c8a89fbc25ac9fe40b58962c83b08cbc21 Signed-off-by: Ludovic Courtès --- gnu/packages/patches/hugs-fix-build.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gnu/packages/patches/hugs-fix-build.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/hugs-fix-build.patch b/gnu/packages/patches/hugs-fix-build.patch new file mode 100644 index 00000000000..2c053e18d03 --- /dev/null +++ b/gnu/packages/patches/hugs-fix-build.patch @@ -0,0 +1,24 @@ +Fixes build with GCC 5 and later. +Patch from . + +diff --git a/packages/base/include/HsBase.h b/packages/base/include/HsBase.h +index aa1a7fb..78d5b46 100644 +--- a/packages/base/include/HsBase.h ++++ b/packages/base/include/HsBase.h +@@ -217,15 +217,7 @@ StgWord64 stg_integerToWord64 (StgInt sa, StgByteArray /* Really: mp_limb_t* */ + when compiling to native code. + -------------------------------------------------------------------------- */ + +-#ifndef INLINE +-# if defined(_MSC_VER) +-# define INLINE extern __inline +-# elif defined(__GNUC__) +-# define INLINE extern inline +-# else +-# define INLINE inline +-# endif +-#endif ++#define INLINE inline + + INLINE int __hscore_get_errno(void) { return errno; } + INLINE void __hscore_set_errno(int e) { errno = e; } -- cgit v1.2.3