summaryrefslogtreecommitdiff
path: root/math/pari/patches/patch-Configure
blob: 054c003472d93910728f74d342045ed3cbe32683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-Configure,v 1.2 2020/08/09 23:12:13 joerg Exp $

--- Configure.orig	2016-02-25 14:12:36.000000000 +0000
+++ Configure
@@ -53,6 +53,7 @@ for file in $_tools_list; do
 done
 if test -z "$zcat" -a -n "$gzip"; then zcat="$gzip -dc"; fi
 
+perl=$PERL5
 ####################### CONFIGURE - ARCHITECTURE ############################
 . ./get_archos # arch, osname
 config_log="$TOP/config-$arch-$osname$$.log"
@@ -119,14 +120,14 @@ fi
 . ./get_static  # static
 # For dynamic linking, before and after installing
 runpath=\"$libdir\"
-LDDYN="-lpari"
+LDDYN="-Wl,-R$libdir -L$libdir -lpari"
 # get_modld needs $includedir from get_install, static, and LDDYN
 . ./get_modld   # $_modld_list
 
 # Which copy, SHELL ?
 case "$osname" in
   os2) ln_s=cp;      make_sh=sh;;
-  *)   ln_s="ln -s"; make_sh="/bin/sh";;
+  *)   ln_s="ln -sf"; make_sh="/bin/sh";;
 esac
 ####################### CONFIGURE - CLEANUP #################################
 rm -f gmon.out # created by Configure -pg