pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53170: get_compiler fails to detect clang if it's not named "gcc" in $PATH



On Sun,  8 Apr 2018 17:50:01 +0000 (UTC)
Leonardo Taccari <leot%NetBSD.org@localhost> wrote:


>  Can you please try the following?:

>  Index: bootstrap
>  
>  --- bootstrap	7 Mar 2018 07:34:07 -0000	1.248
>  +++ bootstrap	8 Apr 2018 17:21:51 -0000
>  @@ -777,6 +777,8 @@ OpenBSD)
>   	need_sed=3Dno
>   	set_opsys=3Dno
>   	machine_arch=3D`arch -s`
>  +	CC=${CC:-cc}; export CC
>  +	check_compiler=yes
>   	;;
>  
>  (it is less intrusive and should do the trick!)

it does the trick on both OpenBSD 6.2 and 6.3, but on 6.3
pkgtools/libarchive needs to be patched to avoid redefining functions
already implemented in LibreSSL 2.7

I also tested my patch as working on OpenBSD 6.2 and 6.3 and it doesn't
break FreeBSD 11.1. I haven't tested for Darwin yet


Home | Main Index | Thread Index | Old Index