From c71d1b030796a970d1b638972c0812fb7b80eb25 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 11 Feb 2002 00:25:19 +0000 Subject: [PATCH] Don't pass -mno-pic if we're using ELF. --- sys/arch/vax/conf/Makefile.vax | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax index a2bb93398aa5..a2ef61bd305d 100644 --- a/sys/arch/vax/conf/Makefile.vax +++ b/sys/arch/vax/conf/Makefile.vax @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.vax,v 1.67 2001/12/23 02:14:03 matt Exp $ +# $NetBSD: Makefile.vax,v 1.68 2002/02/11 00:25:19 thorpej Exp $ # Makefile for NetBSD # @@ -33,7 +33,9 @@ GENASSYM= ${VAX}/vax/genassym.cf ## CPPFLAGS+= -D_VAX_INLINE_ AFLAGS+= -x assembler-with-cpp -traditional-cpp +.if ${OBJECT_FMT} != "ELF" CFLAGS+= -mno-pic +.endif ## ## (3) libkern and compat