Module Name: src
Committed By: kamil
Date: Sun Nov 5 02:36:00 UTC 2017
Modified Files:
src/external/gpl3/gcc/lib/liblto_plugin: Makefile
Log Message:
Backport patch from gcc.old for liblto_plugin
Correct resolution of xstrerror(). Switch from -liberty (which has PIC
problems as a local library) to directly linking xstrerror.c with
liblto_plugin.
Fix in gcc.old by <christos>
PR 52674 by myself
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.7
--- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.6 Sat Nov 4 16:21:49 2017
+++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile Sun Nov 5 02:36:00 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2017/11/04 16:21:49 kamil Exp $
+# $NetBSD: Makefile,v 1.7 2017/11/05 02:36:00 kamil Exp $
.include <bsd.init.mk>
.include <bsd.shlib.mk>
@@ -11,7 +11,7 @@ GNUHOSTDIST= ${DIST}
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
+ simple-object-coff.c simple-object-xcoff.c xstrerror.c
CPPFLAGS+= -I${DIST}/include -I.
CPPFLAGS+= -DHAVE_CONFIG_H
@@ -31,10 +31,6 @@ LIBDIR= /usr/libexec
SHLIB_MAJOR= 0
SHLIB_MINOR= 1
-LIBIBERTYDIR!= cd ${.CURDIR}/../../lib/libiberty && ${PRINTOBJDIR}
-LDADD+= -L${LIBIBERTYDIR} -liberty
-DPADD+= ${LIBIBERTYDIR}/libiberty.a
-
# Yuck, we have to run configure to generate this one...
CLEANFILES+= config.h
HOST_CFLAGS+= -I${.OBJDIR}