summaryrefslogtreecommitdiff
path: root/math/itpp/patches/patch-configure
blob: c1dcdbe9a398e992a317a30654f96b12f04881eb (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
$NetBSD: patch-configure,v 1.2 2014/08/19 13:37:53 joerg Exp $

--- configure.orig	2009-12-27 00:56:31.000000000 +0000
+++ configure
@@ -23433,7 +23433,12 @@ fi
 
           done
           ;;
-        -[lLR]*)
+        -R*)
+          ac_arg="-Wl,$ac_arg"
+          shift
+          set X $ac_arg "$@"
+          ;;
+        -[lL]*|-Wl*)
             ac_exists=false
   for ac_i in $ac_cv_f77_libs; do
     if test x"$ac_arg" = x"$ac_i"; then
@@ -23489,8 +23494,6 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS 
 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
-  # Clean up -L/../.. paths from FLIBS
-  MY_FLIBS="`echo \"$FLIBS\" | sed 's/-L[^ ]* //g'`"
   # Check for a Fortran name mangling scheme
   ac_ext=f
 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'