diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index 1ff58ffc1..6082af886 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -19,7 +19,7 @@ pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go) pkgver=7.2.1+20171224 _majorver=${pkgver:0:1} _islver=0.18 -pkgrel=1 +pkgrel=2 pkgdesc='The GNU Compiler Collection' arch=(x86_64) license=(GPL LGPL FDL custom) @@ -219,7 +219,7 @@ package_gcc() { make -C lto-plugin DESTDIR="$pkgdir" install install -dm755 "$pkgdir"/usr/lib/bfd-plugins/ - ln -s /usr/lib/gcc/$CHOST/$pkgver/liblto_plugin.so \ + ln -s /${_libdir}/liblto_plugin.so \ "$pkgdir/usr/lib/bfd-plugins/" make -C $CHOST/libgomp DESTDIR="$pkgdir" install-nodist_{libsubinclude,toolexeclib}HEADERS