$NetBSD: patch-ab,v 1.9 2007/03/20 00:44:53 wiz Exp $

--- Makefile.in.orig	2006-07-14 13:14:17.000000000 +0000
+++ Makefile.in
@@ -38,7 +38,9 @@ all : lib/localcharset.h force
 	if test -d tests; then cd tests && $(MAKE) all; fi
 
 lib/localcharset.h :
-	builddir="`pwd`"; cd libcharset && $(MAKE) all && $(MAKE) install-lib libdir="$$builddir/lib" includedir="$$builddir/lib"
+	builddir="`pwd`"; cd libcharset && $(MAKE) all &&	\
+	${PAX} -rw lib/libcharset.la lib/.libs "$$builddir/" &&	\
+	${PAX} -rw include/*.h "$$builddir/"
 
 # Installs the library and include files only. Typically called with only
 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
