diff options
| author | grischka <grischka> | 2013-02-06 19:01:07 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-02-06 19:01:07 +0100 |
| commit | 7a477d70cabe15fa66fd0f32fab5e95841a500e5 (patch) | |
| tree | 93e20aacb3f5ede1dda9ed987fc4558ebc17a9cf /libtcc.c | |
| parent | 92024ab07ad8e1c4a05f90add3d3ca7932251016 (diff) | |
| download | tinycc-7a477d70cabe15fa66fd0f32fab5e95841a500e5.tar.gz tinycc-7a477d70cabe15fa66fd0f32fab5e95841a500e5.tar.bz2 | |
lib/Makefile: use CC, add bcheck to libtcc1.a
Also:
- fix "make tcc_p" (profiling version)
- remove old gcc flags:
-mpreferred-stack-boundary=2 -march=i386 -falign-functions=0
- remove test "hello" for Darwin (cannot compile to file)
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -105,12 +105,14 @@ static void tcc_set_lib_path_w32(TCCState *s) tcc_set_lib_path(s, path); } +#ifdef TCC_TARGET_PE static void tcc_add_systemdir(TCCState *s) { char buf[1000]; GetSystemDirectory(buf, sizeof buf); tcc_add_library_path(s, normalize_slashes(buf)); } +#endif #ifndef CONFIG_TCC_STATIC void dlclose(void *p) @@ -1169,9 +1171,11 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) #ifndef TCC_TARGET_PE if (ehdr.e_type == ET_DYN) { if (s1->output_type == TCC_OUTPUT_MEMORY) { +#ifdef TCC_IS_NATIVE void *h; h = dlopen(filename, RTLD_GLOBAL | RTLD_LAZY); if (h) +#endif ret = 0; } else { ret = tcc_load_dll(s1, fd, filename, |
