Module Name: src Committed By: christos Date: Wed Jan 7 02:06:23 UTC 2015
Modified Files: src/external/gpl3/gcc/lib/liblto_plugin: Makefile Log Message: fix build To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/lib/liblto_plugin/Makefile diff -u src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.2 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.3 --- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.2 Sun Jun 1 16:24:45 2014 +++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile Tue Jan 6 21:06:23 2015 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2014/06/01 20:24:45 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2015/01/07 02:06:23 christos Exp $ .include <bsd.init.mk> .include <bsd.shlib.mk> @@ -8,9 +8,15 @@ LIB= liblto_plugin DIST= ${GCCDIST} GNUHOSTDIST= ${DIST} -SRCS= lto-plugin.c - -CPPFLAGS+= -DHAVE_CONFIG_H -I${DIST}/include -I. +SRCS= lto-plugin.c hashtab.c simple-object.c pex-unix.c \ + pex-common.c argv.c make-temp-file.c concat.c \ + simple-object-elf.c simple-object-mach-o.c \ + simple-object-coff.c simple-object-xcoff.c + +CPPFLAGS+= -I${DIST}/include -I. +CPPFLAGS+= -DHAVE_CONFIG_H +CPPFLAGS+= -Dxstrdup=strdup -Dxexit=exit +CPPFLAGS+= -Dxcalloc=calloc -Dxmalloc=malloc -Dxrealloc=realloc LIBISMODULE= 1 USE_SHLIBDIR= yes @@ -38,7 +44,7 @@ config.h: Makefile CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \ MAKE=${MAKE:Q} \ CONFIG_SHELL=${HOST_SH:Q} \ - ${HOST_SH} ${DIST}/lto-plugin/configure \ + ${HOST_SH} ${DIST}/libiberty/configure \ --build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \ --host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \ --target=${MACHINE_GNU_PLATFORM} && \ @@ -47,7 +53,7 @@ config.h: Makefile .include <bsd.lib.mk> -.PATH: ${DIST}/lto-plugin +.PATH: ${DIST}/lto-plugin ${DIST}/libiberty .else .include <bsd.prog.mk> # do nothing