| 181 | |
| 182 | * Difficulty: Medium |
| 183 | * Languages: Tcl |
| 184 | * Potential mentors: mcalhoun |
| 185 | |
| 186 | ==== Give Portfile Better Access to CFLAGS, CXXFLAGS, etc. ==== #accessflags |
| 187 | |
| 188 | Currently, the environmental variables CFLAGS and the like are set late in the process (arch flags added, -pipe added, etc.). |
| 189 | Of course, there are [https://lists.macports.org/pipermail/macports-dev/2018-November/thread.html#39694 good reasons for this]. |
| 190 | Unfortunately, this means that there is no Portfile access to these values. |
| 191 | This causes some ugly workarounds such as duplication of code from the base or `configure.cmd printenv` and `configure.post_args {>> Makefile.macports.inc}`. |
| 192 | Giving Portfile at least the **option** of accessing these values could help clean up Portfile code. |