[105103] trunk/dports/databases/libgda3/Portfile
Ryan Schmidt
ryandesign at macports.org
Wed Apr 10 10:41:54 PDT 2013
On Apr 10, 2013, at 10:23, devans at macports.org wrote:
> Revision: 105103
> https://trac.macports.org/changeset/105103
> Author: devans at macports.org
> Date: 2013-04-10 08:23:08 -0700 (Wed, 10 Apr 2013)
> Log Message:
> -----------
> libgda3: fix build with clang (#34331), explicitly disable unwanted backends (#34332).
>
> Modified Paths:
> --------------
> trunk/dports/databases/libgda3/Portfile
>
> Modified: trunk/dports/databases/libgda3/Portfile
> ===================================================================
> --- trunk/dports/databases/libgda3/Portfile 2013-04-10 14:23:14 UTC (rev 105102)
> +++ trunk/dports/databases/libgda3/Portfile 2013-04-10 15:23:08 UTC (rev 105103)
> @@ -45,8 +45,26 @@
> configure.perl ${prefix}/bin/perl5.12
> configure.env-append INTLTOOL_PERL=${configure.perl}
>
> -configure.args --mandir=${prefix}/share/man
> +# fix build with clang, see #34331
>
> +if {${configure.compiler} == "clang"} {
> + configure.cflags-append -Wno-return-type
> +}
This should probably use:
if {[string match "*clang*" ${configure.compiler}]}
to get all the clangs available in MacPorts, not just the clang in Xcode.
More information about the macports-dev
mailing list