Module Name:    src
Committed By:   christos
Date:           Tue Jun  5 11:39:49 UTC 2018

Modified Files:
        src/sys/arch/mips/conf: Makefile.mips

Log Message:
use the compiler way of passing arguments to the linker.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/mips/conf/Makefile.mips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/conf/Makefile.mips
diff -u src/sys/arch/mips/conf/Makefile.mips:1.67 src/sys/arch/mips/conf/Makefile.mips:1.68
--- src/sys/arch/mips/conf/Makefile.mips:1.67	Wed Feb 22 08:34:39 2017
+++ src/sys/arch/mips/conf/Makefile.mips	Tue Jun  5 07:39:49 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.mips,v 1.67 2017/02/22 13:34:39 maya Exp $
+#	$NetBSD: Makefile.mips,v 1.68 2018/06/05 11:39:49 christos Exp $
 
 # Makefile for NetBSD
 #
@@ -59,14 +59,14 @@ CFLAGS+=	-msym32 -mabi=64
 AFLAGS+=	-msym32 -mabi=64
 .endif
 .if ${MACHINE_ARCH} == "mips64eb"
-LDFLAGS+=	-m elf64btsmip
+LDFLAGS+=	-Wl,-m,elf64btsmip
 LINKFORMAT+=	-m elf64btsmip
 SYSTEM_LD_TAIL_EXTRA+= \
 		;echo ${OBJCOPY} -O elf32-ntradbigmips $@ $@.elf32; \
 		${OBJCOPY} -O elf32-ntradbigmips $@ $@.elf32
 .endif
 .if ${MACHINE_ARCH} == "mips64el"
-LDFLAGS+=	-m elf64ltsmip
+LDFLAGS+=	-Wl,-m,elf64ltsmip
 LINKFORMAT+=	-m elf64ltsmip
 SYSTEM_LD_TAIL_EXTRA+= \
 		;echo ${OBJCOPY} -O elf32-ntradlittlemips $@ $@.elf32; \

Reply via email to