tech-pkg archive

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

How to handle cpu tuning flags? (Re: pkg/39117)


pkgsrc/x11/xfce4-exo/Makefile contains follwing codes and
create SSE specific binary, useless with none SSE cpu.

.if !empty(OPSYS:MNetBSD)
.  if exists(/usr/include/mmintrin.h)
CFLAGS+=      -msse
.  endif

This package have no capability of runtime CPU detection,
but have MMX specific codes, built if target arch support MMX.

What is a better solutin to handle this situation?

1. Such a tuning should be in /etc/mk.conf. Remove it.
2. Add "mmx" option and control pass -mmmx flag or not.
   (Though, I don't know why now pass -msse, not -mmmx)
3. Others, what to do?

"Of course I love NetBSD":-)
OBATA Akio /

Home | Main Index | Thread Index | Old Index