From 0bd1e763e5149bfb2aa97e6c29d1030b10d385bc Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 2 Sep 2012 16:32:53 +0000 Subject: Specify an include path for SYS.h via CPPFLAGS not AFLAGS so mkdep can find it. This was breaking builds after recent changes to mkdep to error out if the compiler does. ok deraadt@ --- libexec/ld.so/arm/Makefile.inc | 4 ++-- libexec/ld.so/sh/Makefile.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libexec/ld.so/arm/Makefile.inc b/libexec/ld.so/arm/Makefile.inc index ad4f7cd8e28..e7fadb4275c 100644 --- a/libexec/ld.so/arm/Makefile.inc +++ b/libexec/ld.so/arm/Makefile.inc @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.3 2011/03/12 18:53:07 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.4 2012/09/02 16:32:52 jsg Exp $ CFLAGS += -fpic -msoft-float AFLAGS += -D_STANDALONE -AFLAGS += -I${.CURDIR}/../../lib/libc/arch/arm +CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/arm SRCS+= divsi3.S ELF_LDFLAGS+=-z nocombreloc LIBCSRCDIR=${.CURDIR}/../../lib/libc diff --git a/libexec/ld.so/sh/Makefile.inc b/libexec/ld.so/sh/Makefile.inc index 4dd3fecefd3..6c78297fbb9 100644 --- a/libexec/ld.so/sh/Makefile.inc +++ b/libexec/ld.so/sh/Makefile.inc @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile.inc,v 1.4 2008/04/03 00:13:33 drahn Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2012/09/02 16:32:52 jsg Exp $ CFLAGS += -fpic CFLAGS+=-m4-nofpu AFLAGS += -D_STANDALONE -AFLAGS += -I${.CURDIR}/../../lib/libc/arch/sh +CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/sh ELF_LDFLAGS+=-z nocombreloc LIBCSRCDIR=${.CURDIR}/../../lib/libc LDADD= `$(CC) -print-libgcc-file-name` -- cgit v1.2.3