summaryrefslogtreecommitdiff
path: root/math/pari/patches/patch-Configure
blob: 4a497c6df6652158cd44f7446f6489716dcd7ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-Configure,v 1.1 2016/03/03 13:28:22 wiz Exp $

--- Configure.orig	2015-06-02 14:03:57.000000000 +0000
+++ Configure
@@ -119,14 +119,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