On Fri, Sep 14, 2001 at 04:08:01PM -0700, David O'Brien wrote:
> On Fri, Sep 14, 2001 at 06:33:09PM +0300, Ruslan Ermilov wrote:
> > Please try the attached patch.  I'm going to attempt to unbreak
> > the upgrade path from 4.1-RELEASE to 5.0-CURRENT sometimes in
> > the near future.
> 
> Please try to restructure it along the lines of
> src/gnu/usr.bin/binutils/libiberty/Makefile rev 1.11.  Peter provided a
> patch that is a more proper way.
> 
Nope, you please try to restructure it along the lines of
src/usr.bin/xinstall/Makefile rev 1.16.  Also, won't it be
better to use the libc version of basename.c?

(I've added -DBOOTSTRAPPING in src/Makefile.inc1,v 1.216.)

Index: Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/binutils/libiberty/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    2001/09/14 23:07:02     1.11
+++ Makefile    2001/09/17 12:18:36
@@ -2,6 +2,9 @@
 
 .include "../Makefile.inc0"
 
+.if defined(BOOTSTRAPPING)
+.PATH: ${.CURDIR}/../../../../lib/libc/gen
+.endif
 .PATH: ${SRCDIR}/libiberty
 
 LIB=   iberty
@@ -10,8 +13,7 @@
        hex.c floatformat.c lbasename.c objalloc.c obstack.c safe-ctype.c \
        xatexit.c xexit.c xmalloc.c \
        xstrdup.c xstrerror.c
-LIBC_BASENAME!=        ar tv /usr/lib/libc.a | grep basename
-.if ${LIBC_BASENAME} == ""
+.if defined(BOOTSTRAPPING)
 SRCS+= basename.c
 .endif
 CFLAGS+=       -DHAVE_CONFIG_H


Cheers,
-- 
Ruslan Ermilov          Oracle Developer/DBA,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          FreeBSD committer,
+380.652.512.251        Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to