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 =...@@ -340,12 +340,12 @@ const usage_build_generic =
340 \\ -rpath [path] Add directory to the runtime library search path340 \\ -rpath [path] Add directory to the runtime library search path
341 \\ -feach-lib-rpath Ensure adding rpath for each used dynamic library341 \\ -feach-lib-rpath Ensure adding rpath for each used dynamic library
342 \\ -fno-each-lib-rpath Prevent adding rpath for each used dynamic library342 \\ -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
343 \\ --eh-frame-hdr Enable C++ exception handling by passing --eh-frame-hdr to linker345 \\ --eh-frame-hdr Enable C++ exception handling by passing --eh-frame-hdr to linker
344 \\ --emit-relocs Enable output of relocation sections for post build tools346 \\ --emit-relocs Enable output of relocation sections for post build tools
345 \\ -dynamic Force output to be dynamically linked347 \\ -dynamic Force output to be dynamically linked
346 \\ -static Force output to be statically linked348 \\ -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
349 \\ -Bsymbolic Bind global references locally349 \\ -Bsymbolic Bind global references locally
350 \\ --subsystem [subsystem] (Windows) /SUBSYSTEM:<subsystem> to the linker350 \\ --subsystem [subsystem] (Windows) /SUBSYSTEM:<subsystem> to the linker
351 \\ --stack [size] Override default stack size351 \\ --stack [size] Override default stack size
...@@ -975,9 +975,9 @@ fn buildOutputType(...@@ -975,9 +975,9 @@ fn buildOutputType(
975 link_eh_frame_hdr = true;975 link_eh_frame_hdr = true;
976 } else if (mem.eql(u8, arg, "--emit-relocs")) {976 } else if (mem.eql(u8, arg, "--emit-relocs")) {
977 link_emit_relocs = true;977 link_emit_relocs = true;
978 } else if (mem.eql(u8, arg, "--allow-shlib-undefined")) {978 } else if (mem.eql(u8, arg, "-fallow-shlib-undefined")) {
979 linker_allow_shlib_undefined = true;979 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")) {
981 linker_allow_shlib_undefined = false;981 linker_allow_shlib_undefined = false;
982 } else if (mem.eql(u8, arg, "-Bsymbolic")) {982 } else if (mem.eql(u8, arg, "-Bsymbolic")) {
983 linker_bind_global_refs_locally = true;983 linker_bind_global_refs_locally = true;