pkgsrc-Users archive

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

Re: libvpx and gcc 4.4 dependency



* On 2014-09-03 at 13:50 BST, Patrick Welche wrote:

> NetBSD 5 comes with gcc 4.1.3.
> libvpx needs >= gcc 4.4 to build ssse3 code
> libvpx then ends up with a runtime dependency on gcc 4.4 via libgcc_s,
> according to libvpx's +BUILD_INFO:
> 
> REQUIRES=/usr/pkg/gcc44/lib/libgcc_s.so.1
> 
> This means that the 1.6M libvpx (i386) binary package carries
> a 150M dependency, which seems a little heavy...
> 
> Thoughts?

This is one of the reasons for the gcc47-libs package, with that and
USE_PKGSRC_GCC_RUNTIME=yes then you "only" have to depend upon the 20M
gcc47-libs package.

Something similar could be done for the older GCC packages, though it
is a reasonable amount of work and I'm not sure anyone has much
interest in doing it (we don't, as we only use 4.7+).

> (Make ssse3 optional?) (Would that imply sse4_1 as well?)

For your situation I'd do some performance analysis to see whether
enabling ssse3 actually results in much improvement, and then decide
based on that whether to continue enabling it and taking the resulting
GCC hit.  If it's worth it then it may be worth just using lang/gcc47
for all packages.

YMMV.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index