summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1999-06-22 16:28:22 +0000
committerchristos <christos@NetBSD.org>1999-06-22 16:28:22 +0000
commit00e56218472a74ca09fed34fd80a468fc20d2ffc (patch)
treed105142cdbd7e27553f67d83ec349412111d0978 /libexec
parent092b1acdb41b4cb14ee4838ab1883cb259c62472 (diff)
We need to compile with -DVARPSZ, because the sparc has a variable page
size depending on arch. Make it an error to compile without it. This caused -lposix linked programs to fail.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/arch/sparc/Makefile.inc4
-rw-r--r--libexec/ld.elf_so/rtld.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.elf_so/arch/sparc/Makefile.inc b/libexec/ld.elf_so/arch/sparc/Makefile.inc
index 0ef1e31ebcb..7a1f58ac095 100644
--- a/libexec/ld.elf_so/arch/sparc/Makefile.inc
+++ b/libexec/ld.elf_so/arch/sparc/Makefile.inc
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.inc,v 1.1 1999/02/24 18:25:40 christos Exp $
+# $NetBSD: Makefile.inc,v 1.2 1999/06/22 16:28:23 christos Exp $
SRCS+= rtld_start.S mdreloc.c
-CPPFLAGS+= -fpic -DELFSIZE=32 -DRTLD_RELOCATE_SELF
+CPPFLAGS+= -fpic -DELFSIZE=32 -DRTLD_RELOCATE_SELF -DVARPSZ
LDFLAGS+= -Bshareable -Bsymbolic -e _rtld_start
diff --git a/libexec/ld.elf_so/rtld.h b/libexec/ld.elf_so/rtld.h
index b5a627f3b2c..714ff7dc7fc 100644
--- a/libexec/ld.elf_so/rtld.h
+++ b/libexec/ld.elf_so/rtld.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.h,v 1.12 1999/06/16 15:41:24 kleink Exp $ */
+/* $NetBSD: rtld.h,v 1.13 1999/06/22 16:28:22 christos Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -62,7 +62,7 @@ extern int _rtld_pagesz;
# ifndef __sparc__
# define PAGESIZE CLBYTES
# else
-# define PAGESIZE 8192 /* NPBG is not constant! */
+ #error "Sparc has a variable page size"
# endif
# endif
#endif