diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-20 03:27:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-20 03:27:19 +0000 |
commit | 2bd4c46727ed19ba464eb22bdc566b9768fd9ae4 (patch) | |
tree | 9f64be9d10afe8c75c13b237987c47d259c263b2 | |
parent | f5c087f75f102f60eaa38e7565e66e7fec000210 (diff) |
Append "-idirafter ${DESTDIR}/usr/include/g++" to CPPFLAGS if DESTDIR is
specified so we can find gcc-installed c++ includes. dm@openbsd.org
-rw-r--r-- | gnu/lib/libg++/libg++/Makefile.bsd-wrapper | 5 | ||||
-rw-r--r-- | gnu/lib/libg++/libstdc++/Makefile.bsd-wrapper | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gnu/lib/libg++/libg++/Makefile.bsd-wrapper b/gnu/lib/libg++/libg++/Makefile.bsd-wrapper index a85785157ad..0fd7c1c8ac5 100644 --- a/gnu/lib/libg++/libg++/Makefile.bsd-wrapper +++ b/gnu/lib/libg++/libg++/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.10 1998/06/07 23:22:11 millert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.11 1998/09/20 03:27:17 millert Exp $ .if defined(OBJMACHINE) OBJDIR= obj.${MACHINE} @@ -95,5 +95,8 @@ includes: $$i $(DESTDIR)/usr/include/g++/$$i; \ done +.if defined(DESTDIR) +CPPFLAGS+= -idirafter ${DESTDIR}/usr/include/g++ +.endif .include <bsd.lib.mk> diff --git a/gnu/lib/libg++/libstdc++/Makefile.bsd-wrapper b/gnu/lib/libg++/libstdc++/Makefile.bsd-wrapper index 3a3f96f30ea..547fa57ffbd 100644 --- a/gnu/lib/libg++/libstdc++/Makefile.bsd-wrapper +++ b/gnu/lib/libg++/libstdc++/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.8 1998/03/03 21:42:46 millert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.9 1998/09/20 03:27:18 millert Exp $ IO_DIR= $(.CURDIR)/../libio LIBIBERTY_DIR= $(.CURDIR)/../libiberty @@ -423,4 +423,8 @@ ldcomio.so: cinst.cc $(STD_DIR)/complext.h $(STD_DIR)/complext.cc \ @$(LD) -x -r ldcomio.so.o -o ldcomio.so @rm -f ldcomio.so.o +.if defined(DESTDIR) +CPPFLAGS+= -idirafter ${DESTDIR}/usr/include/g++ +.endif + .include <bsd.lib.mk> |