| ... | ... | @@ -195,7 +195,7 @@ pub fn buildLibCXX(comp: *Compilation, prog_node: std.Progress.Node) BuildError! |
| 195 | 195 | .valgrind = false, |
| 196 | 196 | .optimize_mode = optimize_mode, |
| 197 | 197 | .structured_cfg = comp.root_mod.structured_cfg, |
| 198 | | .pic = comp.root_mod.pic, |
| 198 | .pic = if (target_util.supports_fpic(target)) true else null, |
| 199 | 199 | }, |
| 200 | 200 | .global = config, |
| 201 | 201 | .cc_argv = &.{}, |
| ... | ... | @@ -278,9 +278,6 @@ pub fn buildLibCXX(comp: *Compilation, prog_node: std.Progress.Node) BuildError! |
| 278 | 278 | try cflags.append("-faligned-allocation"); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | | if (target_util.supports_fpic(target)) { |
| 282 | | try cflags.append("-fPIC"); |
| 283 | | } |
| 284 | 281 | try cflags.append("-nostdinc++"); |
| 285 | 282 | try cflags.append("-std=c++23"); |
| 286 | 283 | try cflags.append("-Wno-user-defined-literals"); |