diff --git a/lang/python39/Portfile b/lang/python39/Portfile
index c29043490b3..e823480da46 100644
a
|
b
|
patchfiles patch-setup.py.diff \ |
32 | 32 | patch-configure.diff \ |
33 | 33 | patch-Lib-ctypes-macholib-dyld.py.diff \ |
34 | 34 | patch-libedit.diff \ |
35 | | patch-configure-xcode4bug.diff |
| 35 | patch-configure-xcode4bug.diff \ |
| 36 | sysconfig.py.diff |
36 | 37 | |
37 | 38 | if {${os.platform} eq "darwin" && ${os.major} < 10} { |
38 | 39 | # work around no copyfile and/or pthread_threadid_np on older systems |
… |
… |
platform darwin { |
118 | 119 | # work for dependents that incorrectly use this variable to find out |
119 | 120 | # how to link against python (see ticket #15099); instead we mirror |
120 | 121 | # the behavior of `python-config --ldflags` here. |
121 | | system -W ${buildlibdir} "awk -F : \ |
122 | | \"/'LINKFORSHARED'/ {printf \\\"%s: '-L${framewdir}/lib/python${branch}/${confdir}\ |
123 | | -lpython${branch} -ldl -framework CoreFoundation',\\n\\\", \\\$1; getline; next} {print}\"\ |
124 | | _sysconfigdata__darwin_darwin.py > _sysconfigdata__darwin_darwin.py.new" |
125 | | file rename -force ${buildlibdir}/_sysconfigdata__darwin_darwin.py.new \ |
| 122 | set lfs_pattern {^([[:space:]]*'LINKFORSHARED':).*} |
| 123 | set lfs_replacement "\\1 '-L${framewdir}/lib/python${branch}/${confdir} -lpython${branch} -ldl -framework CoreFoundation'," |
| 124 | reinplace -E s|${lfs_pattern}|${lfs_replacement}| \ |
126 | 125 | ${buildlibdir}/_sysconfigdata__darwin_darwin.py |
127 | 126 | |
128 | 127 | # remove -arch flags from the config |