From 6740a56f485a6a61f0114f4ac3e9bbcae8d0456e Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 22 Mar 2002 18:36:41 +0000 Subject: [PATCH] DESTDIR does not anymore does the -I${DESTDIR}/usr/include magic in and . Reviewed by: luigi --- release/picobsd/build/picobsd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd index 04ff918752dd..ab1fdad51ea7 100755 --- a/release/picobsd/build/picobsd +++ b/release/picobsd/build/picobsd @@ -151,15 +151,15 @@ create_includes_and_libraries() { mkdir -p ${l_usrtree}/share/misc # a few things go here mkdir -p ${l_usrtree}/lib # libraries mkdir -p ${l_usrtree}/sbin # some binaries - (cd ${SRC}; INCOWN=`id -un` BINOWN=`id -un` DESTDIR=${SRC}/.. \ + (cd ${SRC}; INCOWN=`id -un` BINOWN=`id -un` DESTDIR=${l_usrtree}/.. \ make -m ${SRC}/share/mk includes ) || fail $? includes - # libraries already have the include path in the Makefile - CFLAGS="-nostdinc" ; export CFLAGS + # Pick up the correct headers for libraries. + CFLAGS="-nostdinc -I${l_usrtree}/include" ; export CFLAGS (cd ${SRC} # $e is the invocation of make with correct environment e="MAKEOBJDIRPREFIX=${l_objtree}/picobsd/libraries \ - INCOWN=`id -un` BINOWN=`id -un` DESTDIR=${SRC}/.. \ + INCOWN=`id -un` BINOWN=`id -un` DESTDIR=${l_usrtree}/.. \ make -m ${SRC}/share/mk \ -DNOHTML -DNOINFO -DNOMAN -DNOSHARE -DNOFSCHG " log "do a 'make obj' in a few places."