toolchain.eclass: don't install libcp1plugin.la
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Apr 2018 23:23:08 +0000 (00:23 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 13 Apr 2018 23:25:08 +0000 (00:25 +0100)
Don't install plugin's .la file. Plugins are meant
to be loaded at runtime (they all export the same sympols, etc.).
Plugins don't have static library equivalent.

Drop 'libcp1plugin.la'.

Reported-by: Paolo Pedroni
Closes: https://bugs.gentoo.org/638216
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index b07a27f96bf33faa71097abcaabef3d1a001d529..2da455ad4e3b5283299a714a7871674dbe9483e2 100644 (file)
@@ -1808,6 +1808,7 @@ toolchain_src_install() {
        # libsupc++.la: This has no dependencies.
        # libcc1.la: There is no static library, only dynamic.
        # libcc1plugin.la: Same as above, and it's loaded via dlopen.
+       # libcp1plugin.la: Same as above, and it's loaded via dlopen.
        # libgomp.la: gcc itself handles linkage (libgomp.spec).
        # libgomp-plugin-*.la: Same as above, and it's an internal plugin only
        # loaded via dlopen.
@@ -1827,6 +1828,7 @@ toolchain_src_install() {
                        -name libsupc++.la -o \
                        -name libcc1.la -o \
                        -name libcc1plugin.la -o \
+                       -name libcp1plugin.la -o \
                        -name 'libgomp.la' -o \
                        -name 'libgomp-plugin-*.la' -o \
                        -name libgfortran.la -o \