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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to