gcc: add libgcc-devel subpkg.
This package now contains the *crt*.o and libgcc*.a. Closes #3472.
This commit is contained in:
parent
9002979ade
commit
81ddb0ead5
2 changed files with 12 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
pkgname=gcc
|
||||
_majorver=4.9
|
||||
version=${_majorver}.3
|
||||
revision=2
|
||||
revision=3
|
||||
short_desc="The GNU C Compiler"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
homepage="http://gcc.gnu.org"
|
||||
|
@ -19,7 +19,7 @@ if [ "$CHROOT_READY" ]; then
|
|||
hostmakedepends="perl flex"
|
||||
fi
|
||||
makedepends="zlib-devel libmpc-devel cloog-devel"
|
||||
depends="binutils libgcc-${version}_${revision}"
|
||||
depends="binutils libgcc-devel-${version}_${revision}"
|
||||
|
||||
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
|
||||
subpackages+=" libssp libssp-devel gcc-c++"
|
||||
|
@ -41,7 +41,7 @@ if [ -n "$CHROOT_READY" -a -z "$CROSS_BUILD" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
subpackages+=" libstdc++-devel libstdc++"
|
||||
subpackages+=" libstdc++-devel libstdc++ libgcc-devel"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686) _triplet="i686-pc-linux-gnu";;
|
||||
|
@ -483,6 +483,14 @@ libgcc_package() {
|
|||
vlicense ${wrksrc}/COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
libgcc-devel_package() {
|
||||
depends="libgcc-${version}_${revision}"
|
||||
short_desc+=" - GCC library - development files"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/gcc/${_triplet}/${_majorver}/*.o"
|
||||
vmove "usr/lib/gcc/${_triplet}/${_majorver}/*.a"
|
||||
}
|
||||
}
|
||||
libgomp-devel_package() {
|
||||
depends="libgomp>=${_majorver}"
|
||||
short_desc+=" - OpenMP v4.0 library - development files"
|
||||
|
|
1
srcpkgs/libgcc-devel
Symbolic link
1
srcpkgs/libgcc-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
gcc
|
Loading…
Reference in a new issue