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