Commit 42c2d2a
committed
openbsd: ensure we link to the built libperl.a, not the system libperl.a
When building with gcc, lib/ExtUtils/t/Embed.t would link against
the system libperl.a rather than the newly built libperl.a.
Due to the limited API used by the sample code this typically didn't
crash, but some configuration changes could result in a crash or a
link error.
For OpenBSD, change the link options to more closely match those
used when building the perl executable, which results in linking
against the correct library.
Fixes #221251 parent dc38986 commit 42c2d2a
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
107 | 120 | | |
108 | 121 | | |
109 | 122 | | |
110 | 123 | | |
111 | 124 | | |
112 | | - | |
| 125 | + | |
113 | 126 | | |
114 | 127 | | |
115 | 128 | | |
| |||
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
161 | | - | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
| |||
196 | 209 | | |
197 | 210 | | |
198 | 211 | | |
199 | | - | |
| 212 | + | |
200 | 213 | | |
201 | 214 | | |
202 | 215 | | |
| |||
0 commit comments