aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-13 21:48:44 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-13 21:48:44 +0000
commit2b618987fee88c4b3253d840a59f52680bfec2a6 (patch)
treee06c967bdb858227175cd2821c4ca0634e645306 /lib/libc/Makefile
parentd55229b72ecc97075f1afcd976f8e0c1cd0d662b (diff)
downloadsrc-2b618987fee88c4b3253d840a59f52680bfec2a6.tar.gz
src-2b618987fee88c4b3253d840a59f52680bfec2a6.zip
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
It was foiled because of dynamic copy relocations that caused compile-time space to be reserved in .bss and at run time a blob of data was copied to that space and everything used the .bss version.. The problem is that the space is reserved at compile time, not runtime... So we *still* could not change the size of FILE. Sigh. :-( Replace it with something that does actually work and really does let us make 'FILE' extendable. It also happens to be the same as Linux does in glibc, but has the slight cost of a pointer. Note that this is the same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has. Fortunately, actual references to stdin/out/err are not all that common since we have implicit stdin/out/err-using versions of functions (printf() vs. fprintf()).
Notes
Notes: svn path=/head/; revision=81600
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index cdb5011c3571..9ac83d97cf5c 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -9,7 +9,8 @@
LIB=c
SHLIB_MAJOR= 5
SHLIB_MINOR= 0
-CFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/include
+CFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/include -I${.CURDIR}/../../include
+CFLAGS+=-DLIBC_MAJOR=${SHLIB_MAJOR}
AINC= -I${.CURDIR}/${MACHINE_ARCH}
CLEANFILES+=tags
INSTALL_PIC_ARCHIVE= yes