Date: Sun, 27 Jun 2010 23:09:47 -0400 From: Eitan Adler <lists@eitanadler.com> To: freebsd ports <freebsd-ports@freebsd.org> Subject: flag to tell ports that you are only building for yourself Message-ID: <AANLkTimVsVusLDbfQxUegnSMVsWdw7KL_jOpkgT7SG0e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I'd like to add a flag to tell ports that you are building only for yourself that and optimizations that typically are not enabled could be turned on. The first two that come to mind are -mtune=native and -march=native. Ports would be able to add more flags as needed. This could allow ports to optimize themselves to the architecture they on without losing the ability to cross build or have build clusters. --- old.port.mk 2010-06-27 23:01:04.000000000 -0400 +++ bsd.port.mk 2010-06-27 23:05:16.000000000 -0400 @@ -2282,6 +2282,10 @@ .endif .endif +.if defined (ONLY_FOR_SELF) +CFLAGS += -mtune=native -march=native -mcpu=native +.endif + .if defined(USE_CSTD) CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD} .endif -- Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimVsVusLDbfQxUegnSMVsWdw7KL_jOpkgT7SG0e>