summaryrefslogtreecommitdiff
path: root/math/octave/patches/patch-configure
blob: 94a379de76d89a341a7c822d86293c0b6f1281be (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
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-configure,v 1.3 2016/02/16 04:21:40 dbj Exp $

install .oct loadable modules with INSTALL_LIB to avoid stripping them

--- configure.orig	2015-05-26 16:21:37.000000000 +0000
+++ configure
@@ -1951,6 +1951,7 @@ DEFAULT_PAGER
 GNUPLOT
 GHOSTSCRIPT
 DESKTOP_FILE_INSTALL
+INSTALL_LIB
 LN_S
 TEXI2PDF
 TEXI2DVI
@@ -8609,7 +8610,9 @@ fi
 
 
 
-INSTALL_SCRIPT='${INSTALL}'
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_LIB" && INSTALL_LIB='${INSTALL_SCRIPT}'
 
 
 
@@ -13788,7 +13791,12 @@ else
 fi
 	  done
 	  ;;
-	-[lLR]*)
+	-R*)
+	  ac_arg="-Wl,$ac_arg"
+	  shift
+	  set X $ac_arg "$@"
+	  ;;
+	-[lLR]*|-Wl*)
 	    ac_exists=false
   for ac_i in $ac_cv_f77_libs; do
     if test x"$ac_arg" = x"$ac_i"; then