authorgravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2021-04-16 23:07:29+02:00
committergravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2021-04-17 00:03:35+02:00
log01a1365857ad1bd209f9967c0ec8ce8aaa387138
treea3b781117bfe7be4088c20af546bde0da73a66c5
parent99e7ba24b17d9b0a948c8fd01904d3597b5d4f84

Rename --(no-)allow-shilb-undefined to -f(no-)allow-shilb-undefined

This breaks with GNU ld but is consistent with our naming convention for all the rest of the flags.

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

src/main.zig+4-4
......@@ -340,12 +340,12 @@ const usage_build_generic =
340340 \\ -rpath [path] Add directory to the runtime library search path
341341 \\ -feach-lib-rpath Ensure adding rpath for each used dynamic library
342342 \\ -fno-each-lib-rpath Prevent adding rpath for each used dynamic library
343 \\ -fallow-shlib-undefined Allows undefined symbols in shared libraries
344 \\ -fno-allow-shlib-undefined Disallows undefined symbols in shared libraries
343345 \\ --eh-frame-hdr Enable C++ exception handling by passing --eh-frame-hdr to linker
344346 \\ --emit-relocs Enable output of relocation sections for post build tools
345347 \\ -dynamic Force output to be dynamically linked
346348 \\ -static Force output to be statically linked
347 \\ --allow-shlib-undefined Allows undefined symbols in shared libraries
348 \\ --no-allow-shlib-undefined Disallows undefined symbols in shared libraries
349349 \\ -Bsymbolic Bind global references locally
350350 \\ --subsystem [subsystem] (Windows) /SUBSYSTEM:<subsystem> to the linker
351351 \\ --stack [size] Override default stack size
......@@ -975,9 +975,9 @@ fn buildOutputType(
975975 link_eh_frame_hdr = true;
976976 } else if (mem.eql(u8, arg, "--emit-relocs")) {
977977 link_emit_relocs = true;
978 } else if (mem.eql(u8, arg, "--allow-shlib-undefined")) {
978 } else if (mem.eql(u8, arg, "-fallow-shlib-undefined")) {
979979 linker_allow_shlib_undefined = true;
980 } else if (mem.eql(u8, arg, "--no-allow-shlib-undefined")) {
980 } else if (mem.eql(u8, arg, "-fno-allow-shlib-undefined")) {
981981 linker_allow_shlib_undefined = false;
982982 } else if (mem.eql(u8, arg, "-Bsymbolic")) {
983983 linker_bind_global_refs_locally = true;