summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-03-19 04:17:36 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-03-19 04:17:36 +0700
commit9661c2a09237d46969ce7d0918efe03771be8795 (patch)
tree34b8e591b2c5384f7e2de7ac88083072bb6ce8d0 /sci-mathematics/pari/files
parentapp-crypt/rhash: Version bump to 1.3.6, new build system (diff)
downloadgentoo-9661c2a09237d46969ce7d0918efe03771be8795.tar.gz
gentoo-9661c2a09237d46969ce7d0918efe03771be8795.tar.bz2
gentoo-9661c2a09237d46969ce7d0918efe03771be8795.zip
sci-mathematics/pari: fix building with USE=fltk
Suggested-by: Fran├žois Bissey <frp.bissey@gmail.com> Closes: https://bugs.gentoo.org/646942 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'sci-mathematics/pari/files')
-rw-r--r--sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch b/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
new file mode 100644
index 00000000000..26e146e032a
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
@@ -0,0 +1,22 @@
+diff --git a/config/get_fltk b/config/get_fltk
+index 87d0c1d..22f5bd8 100644
+--- a/config/get_fltk
++++ b/config/get_fltk
+@@ -2,13 +2,16 @@ if test -z "$with_fltk"; then
+ with_fltk=yes
+ fi
+
++cmd="FLTK_CXXFLAGS=\`fltk-config --cxxflags\`"
++. log_cmd
++
+ cmd="FLTK_LIBS=\`fltk-config --ldflags\`"
+ . log_cmd
+
+ exe=$osname-$arch-fltk$$$exe_suff
+ cxx=$CXX
+ if test -z "$cxx"; then cxx=g++; fi;
+-cmd="$cxx $CFLAGS $FLTK_LIBS -o $exe has_fltk.c"
++cmd="$cxx $CFLAGS $FLTK_CXXFLAGS $FLTK_LIBS -o $exe has_fltk.c"
+ . log_cmd
+ if test -r "$exe"; then
+ echo "Using FLTK library"