ba7c8c23af
pkgsrc-installed libtool. Modify the configure script to grep the libtool we're using for the values of various libtool-derived variables. While here, fix the name of the variable that contains the flags to pass linker options to the compiler. * Drop the use of SUBST_FILES to directly substitute into cimcomp.c and just patch the Makefile to pass the proper flags when compilng.
41 lines
1 KiB
Text
41 lines
1 KiB
Text
$NetBSD: patch-aa,v 1.3 2006/04/04 16:53:59 jlam Exp $
|
|
|
|
--- configure.orig 1999-11-05 16:07:44.000000000 -0500
|
|
+++ configure
|
|
@@ -3279,14 +3279,16 @@ EOF
|
|
|
|
|
|
|
|
+test -z "$libtool_path" || libtool_path="./libtool"
|
|
+
|
|
echo $ac_n "checking grepping libtool to find wl_flag""... $ac_c" 1>&6
|
|
echo "configure:3284: checking grepping libtool to find wl_flag" >&5
|
|
if eval "test \"`echo '$''{'cim_cv_wl_flag'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
-eval `grep wl= libtool`
|
|
-cim_cv_wl_flag=$pic_flag
|
|
+eval `grep ^wl= $libtool_path`
|
|
+cim_cv_wl_flag=$wl
|
|
|
|
fi
|
|
|
|
@@ -3303,7 +3305,7 @@ if eval "test \"`echo '$''{'cim_cv_link_
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
-eval `grep link_static_flag libtool`
|
|
+eval `grep ^link_static_flag= $libtool_path`
|
|
cim_cv_link_static_flag=$link_static_flag
|
|
|
|
fi
|
|
@@ -3321,7 +3323,7 @@ if eval "test \"`echo '$''{'cim_cv_pic_f
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
-eval `grep pic_flag libtool`
|
|
+eval `grep ^pic_flag= $libtool_path`
|
|
cim_cv_pic_flag=$pic_flag
|
|
|
|
fi
|