From owner-freebsd-current Sun Apr 27 14:50:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA01381 for current-outgoing; Sun, 27 Apr 1997 14:50:16 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id OAA01376 for ; Sun, 27 Apr 1997 14:50:14 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA09824 for current@freebsd.org; Sun, 27 Apr 1997 14:46:04 -0700 From: Terry Lambert Message-Id: <199704272146.OAA09824@phaeton.artisoft.com> Subject: Minor bug in /usr/src/lib/csu/i386/Makefile, with patch To: current@freebsd.org Date: Sun, 27 Apr 1997 14:46:03 -0700 (MST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The Makefile in /usr/src/lib/csu/i386 incorrectly references the system include sirectory instead of the local include directory to obtain the header dlfcn.h. Unless you blindly do a "make install" so that the install of the header occurs before the build, the build will fail for RTLD_NOW or similar dependency changes. For what it's worth, I think it's broken to put the dlfcn.h header here and install it seperately from the standard include installs, anyway. In any case, this patch makes the build look for the dlfcn.h locally before going to the (potentially stale) /usr/include version. Index: Makefile =================================================================== RCS file: /b/cvstree/ncvs/src/lib/csu/i386/Makefile,v retrieving revision 1.30 diff -c -r1.30 Makefile *** 1.30 1997/04/02 16:49:18 --- Makefile 1997/04/27 21:37:01 *************** *** 1,7 **** # from: @(#)Makefile 5.6 (Berkeley) 5/22/91 # $Id: Makefile,v 1.30 1997/04/02 16:49:18 jdp Exp $ ! CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o CLEANFILES+= a.out MAN3+= dlopen.3 --- 1,7 ---- # from: @(#)Makefile 5.6 (Berkeley) 5/22/91 # $Id: Makefile,v 1.30 1997/04/02 16:49:18 jdp Exp $ ! CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer -I${.CURDIR} OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o CLEANFILES+= a.out MAN3+= dlopen.3 =================================================================== Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.