On Feb 1, 2013, at 00:38, [email protected] wrote:

> Revision: 102365
>          https://trac.macports.org/changeset/102365
> Author:   [email protected]
> Date:     2013-01-31 22:38:19 -0800 (Thu, 31 Jan 2013)
> Log Message:
> -----------
> graphite2: Don't bother disabling stack protection when the compiler doesn't 
> even know about it.
> 
> Modified Paths:
> --------------
>    trunk/dports/graphics/graphite2/Portfile
> 
> Modified: trunk/dports/graphics/graphite2/Portfile
> ===================================================================
> --- trunk/dports/graphics/graphite2/Portfile  2013-02-01 06:34:40 UTC (rev 
> 102364)
> +++ trunk/dports/graphics/graphite2/Portfile  2013-02-01 06:38:19 UTC (rev 
> 102365)
> @@ -28,9 +28,12 @@
> patchfiles          patch-Graphite.cmake.diff
> 
> if {[string match *gcc-4.0 ${configure.compiler}]} {
> -    # 
> https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581749&group_id=66144
>     post-patch {
> +        # 
> https://sourceforge.net/tracker/?func=detail&atid=513479&aid=3581749&group_id=66144
>         reinplace "s|-fdiagnostics-show-option||g" 
> ${worksrcpath}/src/CMakeLists.txt ${worksrcpath}/tests/CMakeLists.txt
> +
> +        # 
> https://sourceforge.net/tracker/?func=detail&aid=3597386&group_id=66144&atid=513479
> +        reinplace "s|-fno-stack-protector||g" 
> ${worksrcpath}/src/CMakeLists.txt ${worksrcpath}/tests/CMakeLists.txt
>     }
> }

Thanks. But Leopard's gcc-4.0 understands the -fno-stack-protector flag, but 
Tiger's gcc-4.0 doesn't. How can I determine whether Leopard's gcc-4.0 defaults 
to having the stack protector on or off? If the default is on, then I'll want 
to change the above patch to only remove the flag on Tiger.


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to