openbsd-ports/lang/gcc/4.6/patches/patch-lto-plugin_Makefile_in
pascal 2e3d081bf6 - PCH support using kurt@'s implementation does work, if you actually enable it
by not making a stupid typo.  From kurt@ (thanks).
- respect version of liblto_plugin
- add %%PIC%% in PLIST-go
2011-11-20 11:10:36 +00:00

26 lines
1.2 KiB
Plaintext

$OpenBSD: patch-lto-plugin_Makefile_in,v 1.2 2011/11/20 11:10:36 pascal Exp $
--- lto-plugin/Makefile.in.orig Sun Feb 13 12:45:53 2011
+++ lto-plugin/Makefile.in Sun Nov 20 00:02:22 2011
@@ -239,9 +239,11 @@ liblto_plugin_la_SOURCES = lto-plugin.c
liblto_plugin_la_LIBADD = \
$(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,)
+include $(top_srcdir)/../libversions
# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
liblto_plugin_la_LDFLAGS = $(lt_host_flags) -module -bindir $(libexecsubdir) \
- $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
+ $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a) \
+ $(LIBlto_plugin_LTVERSION)
liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
@@ -540,7 +542,7 @@ $(in_gcc_libs) : $(gcc_build_dir)/%: %
echo WARNING: $* is static, not copying to $@ >&2 ; \
else \
$(mkinstalldirs) $(gcc_build_dir) && \
- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $* `pwd`/$@ ; \
+ cp $* `pwd`/$@ ; \
fi
# Tell versions [3.59,3.63) of GNU make to not export all variables.