Module Name: src Committed By: matt Date: Fri Jan 14 05:20:00 UTC 2011
Modified Files: src/lib/libposix/sys: Makefile.inc src/lib/librt/sys: Makefile.inc Log Message: Let libposix and librt have their own version of __cerror (__posix_cerror and __rt_cerror). This enables each library (including libc) the oppurtunity to make its __cerror hidden and avoid being called via the PLT. No user visible differences to no need to bump the minor number. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/lib/libposix/sys/Makefile.inc cvs rdiff -u -r1.5 -r1.6 src/lib/librt/sys/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libposix/sys/Makefile.inc diff -u src/lib/libposix/sys/Makefile.inc:1.19 src/lib/libposix/sys/Makefile.inc:1.20 --- src/lib/libposix/sys/Makefile.inc:1.19 Sun Feb 8 22:55:27 2004 +++ src/lib/libposix/sys/Makefile.inc Fri Jan 14 05:20:00 2011 @@ -1,7 +1,8 @@ -# $NetBSD: Makefile.inc,v 1.19 2004/02/08 22:55:27 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.20 2011/01/14 05:20:00 matt Exp $ # sys sources .PATH: ${.CURDIR}/sys +.PATH: ${ARCHDIR}/sys # stubs providing an entry "foo" but calling "__posix_foo()" PSEUDO= chown.S fchown.S lchown.S rename.S @@ -9,6 +10,9 @@ SRCS+= ${PSEUDO} CLEANFILES+= ${PSEUDO} +SRCS+= cerror.S +CPPFLAGS+= -D__cerror=__posix_cerror + ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \ ${DESTDIR}/usr/include/sys/syscall.h Index: src/lib/librt/sys/Makefile.inc diff -u src/lib/librt/sys/Makefile.inc:1.5 src/lib/librt/sys/Makefile.inc:1.6 --- src/lib/librt/sys/Makefile.inc:1.5 Tue Jan 15 03:37:15 2008 +++ src/lib/librt/sys/Makefile.inc Fri Jan 14 05:19:59 2011 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile.inc,v 1.5 2008/01/15 03:37:15 rmind Exp $ +# $NetBSD: Makefile.inc,v 1.6 2011/01/14 05:19:59 matt Exp $ .PATH: ${.CURDIR}/sys +.PATH: ${ARCHDIR}/sys ASM= aio_cancel.S aio_error.S aio_fsync.S aio_read.S aio_return.S \ aio_write.S lio_listio.S \ @@ -11,6 +12,9 @@ SRCS+= ${ASM} CLEANFILES+= ${ASM} +SRCS+= cerror.S +CPPFLAGS+= -D__cerror=__rt_cerror + ASMDEPS= ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \ ${DESTDIR}/usr/include/sys/syscall.h