summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-05 17:17:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-05 17:17:54 +0100
commit0a2f1543c97632205564085c7931c85c287ba7b1 (patch)
treecba1ccd436c71b92081328b144ca1f6e3d90b9be /package
parentcd539adc4a30ce1aa659bf22490381be764de403 (diff)
ruby: fix uClibc-ng misdetection
Diffstat (limited to 'package')
-rw-r--r--package/ruby/patches/patch-configure16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/ruby/patches/patch-configure b/package/ruby/patches/patch-configure
new file mode 100644
index 000000000..6a6360320
--- /dev/null
+++ b/package/ruby/patches/patch-configure
@@ -0,0 +1,16 @@
+--- ruby-2.4.0.orig/configure 2016-12-23 17:06:46.000000000 +0100
++++ ruby-2.4.0/configure 2017-01-30 03:08:52.351107663 +0100
+@@ -9412,6 +9412,13 @@ esac
+ ac_cv_func_isinf=yes
+ ac_cv_func_isnan=yes
+ ;; #(
++ linux*) :
++ LIBS="-lm $LIBS"
++ # finite(), isinf() and isnan() are macros on Linux.
++ ac_cv_func_finite=yes
++ ac_cv_func_isinf=yes
++ ac_cv_func_isnan=yes
++ ;; #(
+ aix*) :
+ LIBS="-lm $LIBS"
+ ac_cv_func_round=no