6 | | * Portfile2.diff and Portfile2.diff just add {{{"-Alddlflags=\"[get_canonical_archflags ld]\""}}} to configure.post_args. Extra code, however, is required to make {{{get_canonical_archflags}}} work correctly. {{{get_canonical_archflags}}} determines if universal flags are required using the following code: |
7 | | {{{ |
8 | | if {![variant_exists universal] || ![variant_isset universal]} { |
9 | | }}} |
10 | | When configure.post_args-append is run, however, the universal variant has not yet been created. |
11 | | I assume this is to give the Portfile a chance to create its own. |
| 6 | * [attachment:"Portfile2.diff" Portfile2.diff] and [attachment:"Portfile3.diff" Portfile3.diff] just add `"-Alddlflags=\"[get_canonical_archflags ld]\""` to `configure.post_args`. Extra code, however, is required to make `get_canonical_archflags` work correctly. `get_canonical_archflags` determines if universal flags are required using the following code: |
| 7 | {{{ |
| 8 | if {![variant_exists universal] || ![variant_isset universal]} { |
| 9 | }}} |
| 10 | When `configure.post_args-append` is run, however, the universal variant has not yet been created. |
| 11 | I assume this is to give the `Portfile` a chance to create its own. |