From 87574de8ed4a41dc2b7134d2dc4e34a3febddc63 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Mon, 5 Apr 2010 21:37:54 +0200 Subject: [PATCH] libtcc: Support -soname for the linker -- By by ... Detlef --- libtcc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libtcc.c b/libtcc.c index 32f2f812..3dae22c7 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1456,6 +1456,9 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, const char *option, int multi) s->rpath = p; } else if (strstart(option, "--section-alignment,", &p)) { s->section_align = strtoul(p, &end, 16); + } else if (strstart(option, "-soname,", &p)) { + s->soname = p; + multi = 0; #ifdef TCC_TARGET_PE } else if (strstart(option, "--subsystem,", &p)) { #if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)