Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/lib/liblto_plugin fix build



details:   https://anonhg.NetBSD.org/src/rev/917f96450cde
branches:  trunk
changeset: 335446:917f96450cde
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 07 02:06:23 2015 +0000

description:
fix build

diffstat:

 external/gpl3/gcc/lib/liblto_plugin/Makefile |  16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 851787336e2a -r 917f96450cde external/gpl3/gcc/lib/liblto_plugin/Makefile
--- a/external/gpl3/gcc/lib/liblto_plugin/Makefile      Wed Jan 07 02:06:03 2015 +0000
+++ b/external/gpl3/gcc/lib/liblto_plugin/Makefile      Wed Jan 07 02:06:23 2015 +0000
@@ -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 @@
 DIST=          ${GCCDIST}
 GNUHOSTDIST=   ${DIST}
 
-SRCS=          lto-plugin.c
+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+=     -DHAVE_CONFIG_H -I${DIST}/include -I.
+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 @@
                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 @@
 
 .include <bsd.lib.mk>
 
-.PATH: ${DIST}/lto-plugin
+.PATH: ${DIST}/lto-plugin ${DIST}/libiberty
 
 .else
 .include <bsd.prog.mk> # do nothing



Home | Main Index | Thread Index | Old Index