Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib Use PRINTOBJDIR to get the object directory of libc and ...



details:   https://anonhg.NetBSD.org/src/rev/96b1276ab53d
branches:  trunk
changeset: 761002:96b1276ab53d
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 18 16:41:51 2011 +0000

description:
Use PRINTOBJDIR to get the object directory of libc and use that with -I.

diffstat:

 lib/libposix/sys/Makefile.inc |  6 ++++--
 lib/librt/sys/Makefile.inc    |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r c52587166eea -r 96b1276ab53d lib/libposix/sys/Makefile.inc
--- a/lib/libposix/sys/Makefile.inc     Tue Jan 18 16:00:04 2011 +0000
+++ b/lib/libposix/sys/Makefile.inc     Tue Jan 18 16:41:51 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.22 2011/01/17 09:43:56 matt Exp $
+#      $NetBSD: Makefile.inc,v 1.23 2011/01/18 16:41:51 matt Exp $
 
 # sys sources
 .PATH: ${.CURDIR}/sys
@@ -10,8 +10,10 @@
 SRCS+=         ${PSEUDO}
 CLEANFILES+=   ${PSEUDO}
 
+LIBCDIR!=      cd ${NETBSDSRCDIR}/lib/libc && ${PRINTOBJDIR}
+
 SRCS+=         cerror.S
-CPPFLAGS+=     -D__cerror=__posix_cerror -I../libc -D_REENTRANT
+CPPFLAGS+=     -D__cerror=__posix_cerror -I${LIBCDIR} -D_REENTRANT
 
 ASMDEPS=       ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
                ${DESTDIR}/usr/include/sys/syscall.h
diff -r c52587166eea -r 96b1276ab53d lib/librt/sys/Makefile.inc
--- a/lib/librt/sys/Makefile.inc        Tue Jan 18 16:00:04 2011 +0000
+++ b/lib/librt/sys/Makefile.inc        Tue Jan 18 16:41:51 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.8 2011/01/17 09:43:56 matt Exp $
+#      $NetBSD: Makefile.inc,v 1.9 2011/01/18 16:41:51 matt Exp $
 
 .PATH: ${.CURDIR}/sys
 .PATH: ${ARCHDIR}/sys
@@ -12,8 +12,10 @@
 SRCS+=         ${ASM}
 CLEANFILES+=   ${ASM}
 
+LIBCDIR!=      cd ${NETBSDSRCDIR}/lib/libc && ${PRINTOBJDIR}
+
 SRCS+=         cerror.S
-CPPFLAGS+=     -D__cerror=__rt_cerror -I../libc -D_REENTRANT
+CPPFLAGS+=     -D__cerror=__rt_cerror -I${LIBCDIR} -D_REENTRANT
 
 ASMDEPS=       ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
                ${DESTDIR}/usr/include/sys/syscall.h



Home | Main Index | Thread Index | Old Index