summaryrefslogtreecommitdiff
path: root/math/octave/patches/patch-configure
blob: f5e41b6b4634a7e20ed54adc89f114e6cad5bb94 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$NetBSD: patch-configure,v 1.4 2016/09/28 02:54:15 maya Exp $

install .oct loadable modules with INSTALL_LIB to avoid stripping them

we pass and assume a given MACHINE_GNU_PLATFORM, but this package did not
use this value due to an error.
the guess it had for linux (x86_64-unknown-linux-gnu), seems to trample
over our own tools:
https://mail-index.netbsd.org/pkgsrc-users/2014/03/26/msg019464.html

--- configure.orig	2015-05-26 16:21:37.000000000 +0000
+++ configure
@@ -1952,6 +1952,7 @@ DEFAULT_PAGER
 GNUPLOT
 GHOSTSCRIPT
 DESKTOP_FILE_INSTALL
+INSTALL_LIB
 LN_S
 TEXI2PDF
 TEXI2DVI
@@ -5870,7 +5871,7 @@ case $host_os in *\ *) host_os=`echo "$h
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring Octave for unknown system type" >&5
 $as_echo "$as_me: WARNING: configuring Octave for unknown system type" >&2;}
   fi
-  canonical_host_type=$host
+  canonical_host_type=$host_alias
 
   if test -z "$host_cpu"; then
     host_cpu=unknown
@@ -8620,7 +8621,9 @@ fi
 
 
 
-INSTALL_SCRIPT='${INSTALL}'
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_LIB" && INSTALL_LIB='${INSTALL_SCRIPT}'
 
 
 
@@ -14005,7 +14008,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