authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-04 20:25:13+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-03 09:29:33+01:00
log39abcc303c471c0180cdb0f5dce4303bbbe45362
treea050d71f2413d81b18c609052b676a01f2395acb
parentc9e67e71c146d9a9c217d3f47e75258a1ffeedd9
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: Pass -fno-PIC to clang if PIC is disabled.

Let's not implicitly rely on whatever Clang's default is.

1 files changed, 2 insertions(+), 2 deletions(-)

src/Compilation.zig+2-2
......@@ -5628,8 +5628,8 @@ pub fn addCCArgs(
56285628 try argv.append("-mthumb");
56295629 }
56305630
5631 if (target_util.supports_fpic(target) and mod.pic) {
5632 try argv.append("-fPIC");
5631 if (target_util.supports_fpic(target)) {
5632 try argv.append(if (mod.pic) "-fPIC" else "-fno-PIC");
56335633 }
56345634
56355635 try argv.ensureUnusedCapacity(2);