Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 1997 14:46:03 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        current@freebsd.org
Subject:   Minor bug in /usr/src/lib/csu/i386/Makefile, with patch
Message-ID:  <199704272146.OAA09824@phaeton.artisoft.com>

next in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704272146.OAA09824>