diff options
author | jlam <jlam@pkgsrc.org> | 2006-04-04 16:53:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-04-04 16:53:59 +0000 |
commit | ba7c8c23af9e5e22de6e011f6a90c0f5d32a89a0 (patch) | |
tree | 5ec3e2e1f174d4d3465dd956346ccf831be8b880 /lang/cim/patches | |
parent | 7a1af28b53f2769a00892db3134084771637738f (diff) | |
download | pkgsrc-ba7c8c23af9e5e22de6e011f6a90c0f5d32a89a0.tar.gz |
* Don't use LTCONFIG_OVERRIDE and let pkgsrc automatically use the
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.
Diffstat (limited to 'lang/cim/patches')
-rw-r--r-- | lang/cim/patches/patch-aa | 28 | ||||
-rw-r--r-- | lang/cim/patches/patch-ab | 22 |
2 files changed, 31 insertions, 19 deletions
diff --git a/lang/cim/patches/patch-aa b/lang/cim/patches/patch-aa index e7ef09bc876..4f1fd8abe19 100644 --- a/lang/cim/patches/patch-aa +++ b/lang/cim/patches/patch-aa @@ -1,31 +1,41 @@ -$NetBSD: patch-aa,v 1.2 2001/04/21 01:10:58 jtb Exp $ +$NetBSD: patch-aa,v 1.3 2006/04/04 16:53:59 jlam Exp $ ---- configure.orig Fri Nov 5 21:07:44 1999 +--- configure.orig 1999-11-05 16:07:44.000000000 -0500 +++ configure -@@ -3285,7 +3285,7 @@ +@@ -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` -+eval `grep ^wl libtool` - cim_cv_wl_flag=$pic_flag +-cim_cv_wl_flag=$pic_flag ++eval `grep ^wl= $libtool_path` ++cim_cv_wl_flag=$wl fi -@@ -3303,7 +3303,7 @@ + +@@ -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` ++eval `grep ^link_static_flag= $libtool_path` cim_cv_link_static_flag=$link_static_flag fi -@@ -3321,7 +3321,7 @@ +@@ -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` ++eval `grep ^pic_flag= $libtool_path` cim_cv_pic_flag=$pic_flag fi diff --git a/lang/cim/patches/patch-ab b/lang/cim/patches/patch-ab index 0c2ef7a1b4f..be84752893e 100644 --- a/lang/cim/patches/patch-ab +++ b/lang/cim/patches/patch-ab @@ -1,13 +1,15 @@ -$NetBSD: patch-ab,v 1.1 2004/05/11 03:33:57 snj Exp $ +$NetBSD: patch-ab,v 1.2 2006/04/04 16:53:59 jlam Exp $ ---- src/Makefile.in.orig 2004-05-10 19:45:42.000000000 -0700 -+++ src/Makefile.in 2004-05-10 19:46:20.000000000 -0700 -@@ -355,7 +355,7 @@ maintainer-clean-generic clean mostlycle +--- src/Makefile.in.orig 1999-11-05 16:07:54.000000000 -0500 ++++ src/Makefile.in +@@ -109,8 +109,8 @@ YFLAGS = -d + # Variables controlling compilation of the generated C-code + SCC = $(CC) +-SCFLAGS = $(CFLAGS) +-SLDFLAGS = $(LDFLAGS) ++SCFLAGS = $(CFLAGS) -I$(includedir) ++SLDFLAGS = -L$(libdir) $(LDFLAGS) + SLIBS = $(LIBS) - cimcomp.o: cimcomp.c Makefile -- $(COMPILE) '-DSCC="$(SCC)"' '-DSCFLAGS="$(SCFLAGS)"' '-DSLDFLAGS="$(SLDFLAGS)"' '-DSLIBS="$(SLIBS)"' '-DLIBDIR="$(libdir)"' '-DINCLUDEDIR="$(includedir)"' -c $(srcdir)/cimcomp.c -+ $(COMPILE) '-DSLIBS="$(SLIBS)"' -c $(srcdir)/cimcomp.c - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. + INCLUDES = -I$(top_srcdir) |