diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index b0601f295c4..19e5db0ccf0 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -325,6 +325,29 @@ libobjc_package() { fi # !CHROOT_READY || !CROSS_BUILD +if [ -z "$CROSS_BUILD" ]; then + +libquadmath-devel_package() { + depends="libquadmath>=${_majorver}" + short_desc+=" - quadmath library - development files" + pkg_install() { + vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/quadmath*" + vmove "usr/lib/libquadmath*.a" + vmove usr/share/info/libquadmath.info + touch ${PKGDESTDIR}/usr/share/info/dir + } +} + +libquadmath_package() { + short_desc+=" - quadmath library" + pkg_install() { + vmove "usr/lib/libquadmath.so*" + vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION + } +} + +fi # !CROSS_BUILD + if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then libcilkrts-devel_package() { @@ -434,25 +457,6 @@ libitm_package() { } -libquadmath-devel_package() { - depends="libquadmath>=${_majorver}" - short_desc+=" - quadmath library - development files" - pkg_install() { - vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/quadmath*" - vmove "usr/lib/libquadmath*.a" - vmove usr/share/info/libquadmath.info - touch ${PKGDESTDIR}/usr/share/info/dir - } -} - -libquadmath_package() { - short_desc+=" - quadmath library" - pkg_install() { - vmove "usr/lib/libquadmath.so*" - vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION - } -} - libsanitizer-devel_package() { depends="libsanitizer>=${_majorver}" short_desc+=" - Sanitizer libraries - development files"