Sean McGovern <[email protected]> writes: > The Solaris linker will correctly mark an executable with each instruction set > encountered by the assembler when building an executable. However, our > libraries > have their own functionality and guards for processor-specific code. > > As having MMX is considered baseline for x86 & x86_64 builds, add it > into the binaries if it has been detected. Otherwise, go ahead and > suppress creation of the hardware capabilities ELF section. > --- > configure | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/configure b/configure > index d5635f4..eb871c6 100755 > --- a/configure > +++ b/configure > @@ -2369,6 +2369,8 @@ case $target_os in > enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS" > network_extralibs="-lsocket -lnsl" > add_cppflags -D__EXTENSIONS__ > + enabled mmx && echo "hwcap_1 = MMX OVERRIDE;" > mapfile || echo > "hwcap_1 = OVERRIDE;" > mapfile > + add_ldflags -Wl,-M,mapfile > nm_opts='-P -g' > ;; > netbsd) > --
It is possible for mmx to be disabled later so this is still not right. Maybe leaving it blank is the better option anyway. That's what happens on other systems. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
