aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-09-23 09:40:06 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2013-09-23 09:40:06 +0200
commit45b35a3d66ee95e2526bf609cc88c4b4b21ac175 (patch)
tree75765725e34f290cf3e2a3053022ff82acad16d1
parent673befd2d7745a90c1c4fcb6d2f0e266c04f8c97 (diff)
downloadtinycc-45b35a3d66ee95e2526bf609cc88c4b4b21ac175.tar.gz
tinycc-45b35a3d66ee95e2526bf609cc88c4b4b21ac175.tar.bz2
set the user-defined library search paths first
-rw-r--r--libtcc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libtcc.c b/libtcc.c
index 3b018ae..f841eb0 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -989,8 +989,6 @@ LIBTCCAPI TCCState *tcc_new(void)
/* glibc defines */
tcc_define_symbol(s, "__REDIRECT(name, proto, alias)", "name proto __asm__ (#alias)");
tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW");
- /* default library paths */
- tcc_add_library_path(s, CONFIG_TCC_LIBPATHS);
/* paths for crt objects */
tcc_split_path(s, (void ***)&s->crt_paths, &s->nb_crt_paths, CONFIG_TCC_CRTPREFIX);
#endif
@@ -1343,8 +1341,8 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
put_stabs("", 0, 0, 0, 0);
}
-#ifdef TCC_TARGET_PE
tcc_add_library_path(s, CONFIG_TCC_LIBPATHS);
+#ifdef TCC_TARGET_PE
# ifdef _WIN32
tcc_add_systemdir(s);
# endif