flag to tell ports that you are only building for yourself
Eitan Adler
lists at eitanadler.com
Mon Jun 28 03:10:09 UTC 2010
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
More information about the freebsd-ports
mailing list