summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-01 23:49:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-06-01 23:49:24 +0000
commite8e5dccd913b8a525ed8e1e2653f46963337d7f2 (patch)
tree932d55345dc391dcab1070f76ea00bc775e9632d /sys/arch/loongson
parent79c8748a119dec8a5336fba03a8c320f96062ec8 (diff)
use --warn-common for linking (some arch's will show new warnings), and
prefer binutils-compatible options in STRIPFLAGS (now that our non-binutils strip(1) can handle them too) ok drahn; miod kettenis (for parts)
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index b872d56c80a..702233ca7fb 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.25 2010/05/28 14:27:08 guenther Exp $
+# $OpenBSD: Makefile.loongson,v 1.26 2010/06/01 23:49:22 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -46,8 +46,7 @@ CMACHFLAGS+= -fno-stack-protector
COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CMACHFLAGS}
-LINKFLAGS= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS}
-STRIPFLAGS= -g -x
+LINKFLAGS= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} -warn-common
.if ${IDENT:M-DDDB_STRUCT}
DB_STRUCTINFO= db_structinfo.h
@@ -85,6 +84,7 @@ SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
+STRIPFLAGS= -g -x
SYSTEM_LD_TAIL+=; \
echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \