Commit 2d60183
committed
Require static native libraries when linking static executables
On ELF targets like Linux, gcc/ld will create a dynamically-linked
executable without warning, even when passed `-static`, when asked to
link to a `.so`. Avoid this confusing and unintended behavior by always
using the static version of libraries when trying to link static
executables.
Fixes #542431 parent f694222 commit 2d60183
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
| 1415 | + | |
1418 | 1416 | | |
1419 | 1417 | | |
1420 | 1418 | | |
| |||
1457 | 1455 | | |
1458 | 1456 | | |
1459 | 1457 | | |
1460 | | - | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
1461 | 1471 | | |
1462 | 1472 | | |
1463 | 1473 | | |
| |||
0 commit comments