pkgsrc/math/pari23/patches/patch-ag
wiz d160569e57 Re-import pari-2.3.5nb19 as math/pari23 to prepare for pari update.
PARI-GP is a package which is aimed at efficient computations in
number theory, but also contains a large number of other useful
functions.  It is somewhat related to a Computer Algebra System, but
is not really one since it treats symbolic expressions as mathematical
entities such as matrices, polynomials, series, etc..., and not as
expressions per se.  However it is often much faster than other CAS,
and contains a large number of specific functions not found elsewhere,
essentially for use in number theory.

This package can be used in an interactive shell (GP) or as a C/C++
library (PARI). It is free software, in the sense of freedom AND 'free
of charge'.

This is the old 2.3 version of pari.
2016-03-03 13:23:22 +00:00

30 lines
1.2 KiB
Text

$NetBSD: patch-ag,v 1.1 2016/03/03 13:23:22 wiz Exp $
--- config/get_dlld.orig 2009-09-19 12:01:14.000000000 +0000
+++ config/get_dlld
@@ -9,7 +9,7 @@ DLSUFFIX=so
soname=.$soname_num
do_dll=yes
case "$osname" in
- gnu*|aix|osf1|solaris|linux|freebsd|netbsd)
+ dragonfly*|gnu*|aix|osf1|solaris|linux|freebsd|netbsd)
case $pari_release_verbose in
*STABLE*) sodest=.$version.$patch;; # released version
*DEVELOPMENT*) sodest=.$patch.0.0;; # unstable version
@@ -67,6 +67,7 @@ if test -n "$DLLD"; then
aix) DLLDFLAGS='-r' ;;
darwin) DLLD=; DLLDFLAGS='-dylib -flat_namespace -undefined suppress' ;;
freebsd) DLLDFLAGS='-Bshareable -x' ;;
+ dragonfly*) DLLDFLAGS='-Bshareable -x' ;;
hpux) DLLDFLAGS='-b' ;;
irix) DLLDFLAGS='-shared -elf -no_unresolved -all' ;;
osf1) DLLDFLAGS='-shared' ;;
@@ -91,7 +92,7 @@ if test -n "$DLLD"; then
DLLDFLAGS="-shared $extra \$(CFLAGS) \$(DLCFLAGS) $DLLDFLAGS"
fi
case "$osname" in
- gnu*|cygwin|osf1|freebsd|linux|sunos|solaris) EXTRADLLDFLAGS='-lc ${LIBS}';;
+ dragonfly*|gnu*|cygwin|osf1|freebsd|linux|sunos|solaris) EXTRADLLDFLAGS='-lc ${LIBS}';;
esac
if test "$fastread" != yes; then