Unified · Split
| @@ -1450,6 +1450,8 @@ static int tcc_set_linker(TCCState *s, const char *option) · 1449 unmodified lines | |||
| 1450 | s->section_align = strtoul(p, &end, 16); | 1450 | s->section_align = strtoul(p, &end, 16); |
| 1451 | } else if (link_option(option, "soname=", &p)) { | 1451 | } else if (link_option(option, "soname=", &p)) { |
| 1452 | copy_linker_arg(&s->soname, p, 0); | 1452 | copy_linker_arg(&s->soname, p, 0); |
| 1453 | } else if (link_option(option, "install_name=", &p)) { | ||
| 1454 | copy_linker_arg(&s->soname, p, 0); | ||
| 1453 | #ifdef TCC_TARGET_PE | 1455 | #ifdef TCC_TARGET_PE |
| 1454 | } else if (link_option(option, "large-address-aware", &p)) { | 1456 | } else if (link_option(option, "large-address-aware", &p)) { |
| 1455 | s->pe_characteristics |= 0x20; | 1457 | s->pe_characteristics |= 0x20; |
| @@ -142,6 +142,9 @@ static const char help2[] = · 141 unmodified lines | |||
| 142 | " -rpath= set dynamic library search path\n" | 142 | " -rpath= set dynamic library search path\n" |
| 143 | " -enable-new-dtags set DT_RUNPATH instead of DT_RPATH\n" | 143 | " -enable-new-dtags set DT_RUNPATH instead of DT_RPATH\n" |
| 144 | " -soname= set DT_SONAME elf tag\n" | 144 | " -soname= set DT_SONAME elf tag\n" |
| 145 | #if defined(TCC_TARGET_MACHO) | ||
| 146 | " -install_name= set DT_SONAME elf tag (soname macOS alias)\n" | ||
| 147 | #endif | ||
| 145 | " -Bsymbolic set DT_SYMBOLIC elf tag\n" | 148 | " -Bsymbolic set DT_SYMBOLIC elf tag\n" |
| 146 | " -oformat=[elf32/64-* binary] set executable output format\n" | 149 | " -oformat=[elf32/64-* binary] set executable output format\n" |
| 147 | " -init= -fini= -Map= -as-needed -O (ignored)\n" | 150 | " -init= -fini= -Map= -as-needed -O (ignored)\n" |