[108385] trunk/dports/gis/gdal/Portfile

Ryan Schmidt ryandesign at macports.org
Mon Jul 22 05:52:04 PDT 2013


On Jul 22, 2013, at 05:08, vince at macports.org wrote:

> Revision: 108385
>          https://trac.macports.org/changeset/108385
> Author:   vince at macports.org
> Date:     2013-07-22 03:08:03 -0700 (Mon, 22 Jul 2013)
> Log Message:
> -----------
> Fix a bug whereby -lsqlite3 is not included in the library list even when the sqlite3 variant is selected.
> Add a +perf variant to optimize code


> +# Perf variant to optimize code
> +variant perf description {Optimize for speed} {
> +    configure.compiler      macports-clang-3.3
> +    configure.cflags        -O3 -pipe -march=native
> +    configure.cxxflags      -O3 -pipe -march=native
> +}

Possibly you should set "configure.optflags -O3 -march=native" instead of dealing with cflags and cxxflags directly.

Or possibly users who want performance should edit this and the compiler choice into macports.conf directly. However they would also have to disable the use of the precompiled binaries otherwise they would, without warning, receive a binary that was not compiled with those flags. So I could understand if we don't think that's the best solution.




More information about the macports-dev mailing list