On Sat, Dec 08, 2001 at 01:08:32PM -0800, Peter Wemm wrote: > Mathieu Arnold wrote: > > > > Warner Losh wrote: > > > > > > 4.4-r -> current build is very broken right now. I'll investigate and > > > fix. > > > > last time I did it, I had a problem with install, adding LDFLAGS+= > > -static to src/usr.bin/xinstall/Makefile fixed the problem. > > the problem was using install linked to libc.so.4 to do something like > > this : > > rm libc.so.4 > > install libc.so.4 > > which was failing for obvious reasons :) > > I think this will fix it: > > http://people.freebsd.org/~peter/compat.diff > > I would have liked to change the 'beforeinstall' to 'afterinstall' in > Makefile.inc, but afterinstall seems to not be usable. Another option is > this: > This makes `afterinstall' useable:
Index: Makefile.inc =================================================================== RCS file: /home/ncvs/src/lib/compat/Makefile.inc,v retrieving revision 1.8 diff -u -r1.8 Makefile.inc --- Makefile.inc 2001/09/22 08:11:24 1.8 +++ Makefile.inc 2001/12/10 14:50:41 @@ -3,8 +3,7 @@ LIBCOMPATDIR?= ${LIBDIR}/compat/aout .if defined(LIBS) && !empty(LIBS) -beforeinstall: __remove-stale-libs -__remove-stale-libs: .PHONY +afterinstall: .for lib in ${LIBS} .if exists(${DESTDIR}${SHLIBDIR}/${lib}) -chflags noschg ${DESTDIR}${SHLIBDIR}/${lib} /me browses how many makefiles have afterinstall: depend on something else. 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