summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2012-09-02 16:32:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2012-09-02 16:32:53 +0000
commit0bd1e763e5149bfb2aa97e6c29d1030b10d385bc (patch)
treee0bda4fbbd3fd240e366462fa2b3bd9d594006ae /libexec/ld.so
parent95595b827641cb67519002e5dcf2b298aaad55ba (diff)
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@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r--libexec/ld.so/arm/Makefile.inc4
-rw-r--r--libexec/ld.so/sh/Makefile.inc4
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`