From e5f0e951d482143678e32be57014d4e645237d75 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 31 Dec 2020 00:17:48 +0100 Subject: [PATCH] pcc-libs: use pcc to compile. Else gcc "mis"compiles crtbegin.o and constructor code ends up in a non-executable segment. Closes #27149. --- srcpkgs/pcc-libs/template | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srcpkgs/pcc-libs/template b/srcpkgs/pcc-libs/template index 0785394bdb2..bca409786bd 100644 --- a/srcpkgs/pcc-libs/template +++ b/srcpkgs/pcc-libs/template @@ -7,7 +7,8 @@ revision=1 archs="i686* x86_64*" wrksrc=${pkgname}-${_distver}.BETA build_style=gnu-configure -hostmakedepends="flex" +configure_args="CC=pcc" +hostmakedepends="flex pcc" short_desc="Portable C Compiler - Support Libraries" maintainer="Orphaned " license="BSD-2-Clause" @@ -17,10 +18,6 @@ checksum=e810aa4d6683e769f490f734b13a296b33c2511ddba646bc526eb85532f1a23a nodebug=1 nocross=1 -if [ "$XBPS_TARGET_LIBC" = glibc ]; then - broken="Binaries generated by pcc segfault when launched" -fi - post_install() { sed -n '2,25p' libpcc/cxmuldiv.c > LICENSE vlicense LICENSE