bootstrappable: MesCC libary layout.

* libtcc.c (tcc_add_library): MesCC libary layout.
This commit is contained in:
Jan Nieuwenhuizen 2017-12-03 14:48:46 +01:00
parent dd1521f341
commit d430a9ecf5
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 0 deletions

View File

@ -1159,6 +1159,9 @@ LIBTCCAPI int tcc_add_library(TCCState *s, const char *libraryname)
#elif defined TCC_TARGET_MACHO
const char *libs[] = { "%s/lib%s.dylib", "%s/lib%s.a", NULL };
const char **pp = s->static_link ? libs + 1 : libs;
#elif TCC_MES_LIBC
const char *libs[3] = { "%s/lib%s+tcc-gcc.mlibc-o", "%s/lib%s+tcc-gcc.o", NULL };
const char **pp = libs;
#else
const char *libs[] = { "%s/lib%s.so", "%s/lib%s.a", NULL };
const char **pp = s->static_link ? libs + 1 : libs;