void-packages/srcpkgs/pcc-libs/template
Leah Neukirchen e5f0e951d4 pcc-libs: use pcc to compile.
Else gcc "mis"compiles crtbegin.o and constructor code ends up in a
non-executable segment.

Closes #27149.
2020-12-31 00:19:45 +01:00

24 lines
689 B
Bash

# Template file for 'pcc-libs'
pkgname=pcc-libs
_snapshot=20190420
_distver=1.1.0
version=${_distver}.${_snapshot}
revision=1
archs="i686* x86_64*"
wrksrc=${pkgname}-${_distver}.BETA
build_style=gnu-configure
configure_args="CC=pcc"
hostmakedepends="flex pcc"
short_desc="Portable C Compiler - Support Libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="http://pcc.ludd.ltu.se/"
distfiles="http://pcc.ludd.ltu.se/ftp/pub/pcc-beta/${pkgname}-${_distver}.BETA-${_snapshot}.tgz"
checksum=e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a
nodebug=1
nocross=1
post_install() {
sed -n '2,25p' libpcc/cxmuldiv.c > LICENSE
vlicense LICENSE
}