summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2000-12-28 22:19:30 +0000
committermiod <miod@openbsd.org>2000-12-28 22:19:30 +0000
commit9d70914b76add3dce247718b16a259b632ae9155 (patch)
tree26e2af53ec64d191e2f9f6fad1afee15bd945238
parentindent. couple of pedant. from deraadt (sync with kame) (diff)
downloadwireguard-openbsd-9d70914b76add3dce247718b16a259b632ae9155.tar.xz
wireguard-openbsd-9d70914b76add3dce247718b16a259b632ae9155.zip
Alter compilation flags, since binutils have changed some of their default
settings between 2.7 and 2.10. Inspired by a similar NetBSD change. Also, while I'm at it, add more -W stuff to CDIAGFLAGS
-rw-r--r--sys/arch/pmax/conf/Makefile.pmax8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/pmax/conf/Makefile.pmax b/sys/arch/pmax/conf/Makefile.pmax
index c3c016f1f46..db5e8aed4a2 100644
--- a/sys/arch/pmax/conf/Makefile.pmax
+++ b/sys/arch/pmax/conf/Makefile.pmax
@@ -43,13 +43,15 @@ CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL -Dpmax
#CDIAGFLAGS= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
# -Wno-uninitialized -Wno-format -Wno-main
# ... and this we will use for now to get the kernel compiled
-CDIAGFLAGS= -Werror -Wno-main
+CDIAGFLAGS= -Werror \
+ -Wno-uninitialized -Wno-format -Wno-main
-CMACHFLAGS= -mno-abicalls -mcpu=r3000
+GP= -G 0
+CMACHFLAGS= -mno-abicalls -mno-half-pic -mcpu=r3000 ${GP}
CFLAGS= ${DEBUG} -O ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS}
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
-LINKFLAGS= -N -Ttext 80030000 -e start
+LINKFLAGS= -N -Ttext 80030000 -e start ${GP}
STRIPFLAGS= -d
TOUCHFLAGS= -f -c