History

set the user-defined library search paths first

Vittorio Giovara committed 13 years ago

Commit 45b35a31 parent 673befd1 file · +1 −3Browse files

Unified · Split

libtcc.c+1−3
@@ -989,8 +989,6 @@ LIBTCCAPI TCCState *tcc_new(void) · 988 unmodified lines
989 /* glibc defines */989 /* glibc defines */
990 tcc_define_symbol(s, "__REDIRECT(name, proto, alias)", "name proto __asm__ (#alias)");990 tcc_define_symbol(s, "__REDIRECT(name, proto, alias)", "name proto __asm__ (#alias)");
991 tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW");991 tcc_define_symbol(s, "__REDIRECT_NTH(name, proto, alias)", "name proto __asm__ (#alias) __THROW");
992 /* default library paths */
993 tcc_add_library_path(s, CONFIG_TCC_LIBPATHS);
994 /* paths for crt objects */992 /* paths for crt objects */
995 tcc_split_path(s, (void ***)&s->crt_paths, &s->nb_crt_paths, CONFIG_TCC_CRTPREFIX);993 tcc_split_path(s, (void ***)&s->crt_paths, &s->nb_crt_paths, CONFIG_TCC_CRTPREFIX);
996#endif994#endif
@@ -1343,8 +1341,8 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type) · 346 unmodified lines
1343 put_stabs("", 0, 0, 0, 0);1341 put_stabs("", 0, 0, 0, 0);
1344 }1342 }
1345 1343
1346#ifdef TCC_TARGET_PE
1347 tcc_add_library_path(s, CONFIG_TCC_LIBPATHS);1344 tcc_add_library_path(s, CONFIG_TCC_LIBPATHS);
1345#ifdef TCC_TARGET_PE
1348# ifdef _WIN321346# ifdef _WIN32
1349 tcc_add_systemdir(s);1347 tcc_add_systemdir(s);
1350# endif1348# endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t