Skip to content
Snippets Groups Projects
Verified Commit f38be5f2 authored by Zach van Rijn's avatar Zach van Rijn Committed by Anna Wilcox
Browse files

user/gsl: force inline to be static

Closes: #1197
parent f377fa5e
No related branches found
No related tags found
1 merge request!763system/gcc: Update to 13.3.0
......@@ -12,6 +12,7 @@ makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/gsl/gsl-$pkgver.tar.gz
gsl-2.4-portable.patch
static-inline.patch
"
prepare() {
......@@ -65,4 +66,5 @@ package() {
}
sha512sums="3300a748b63b583374701d5ae2a9db7349d0de51061a9f98e7c145b2f7de9710b3ad58b3318d0be2a9a287ace4cc5735bb9348cdf48075b98c1f6cc1029df131 gsl-2.7.1.tar.gz
f6a22e82c8f4a1d5ea7b647cbd015cdb9d2e4e9d39728e8f2dba3fdefac64d3f7c8fbc5ec597e6ab315ec1bd49e0e3af4aba091b358a68d9d789884331f4be24 gsl-2.4-portable.patch"
f6a22e82c8f4a1d5ea7b647cbd015cdb9d2e4e9d39728e8f2dba3fdefac64d3f7c8fbc5ec597e6ab315ec1bd49e0e3af4aba091b358a68d9d789884331f4be24 gsl-2.4-portable.patch
7aa882af7136b6948124885eec6b9bdb2703f581d1656488a6aab8c48f601690fa87f2d6d2566c3a8fa200a5c09310ee076aec847779490ff02e03a5bcd0a2a0 static-inline.patch"
diff -ur a/gsl_inline.h b/gsl_inline.h
--- a/gsl_inline.h 2024-06-05 08:59:43.655369544 -0500
+++ b/gsl_inline.h 2024-06-05 09:00:02.707862690 -0500
@@ -49,7 +49,7 @@
#ifdef HAVE_INLINE
# if defined(__GNUC_STDC_INLINE__) || defined(GSL_C99_INLINE) || defined(HAVE_C99_INLINE)
# define INLINE_DECL inline /* use C99 inline */
-# define INLINE_FUN inline
+# define INLINE_FUN static inline
# else
# define INLINE_DECL /* use GNU extern inline */
# define INLINE_FUN extern inline
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment