about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2021-04-07 17:09:37 +0200
committerrajdakin <rajdakin@gmail.com>2021-04-07 17:09:37 +0200
commit79f2b8448a7eeea5f5e182e7ce2ceb15e8e29398 (patch)
tree6e6bd1ec24c472810b2c789d0603a96321624d73 /src/librarian
parent7e09961ee7ac6841883b68123ad700609d2fd955 (diff)
downloadbox64-79f2b8448a7eeea5f5e182e7ce2ceb15e8e29398.tar.gz
box64-79f2b8448a7eeea5f5e182e7ce2ceb15e8e29398.zip
[TRACE] Added a new trace option
Diffstat (limited to 'src/librarian')
-rwxr-xr-xsrc/librarian/library.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index bd85b8cf..edde1abb 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -303,6 +303,7 @@ int FinalizeLibrary(library_t* lib, lib_t* local_maplib, x64emu_t* emu)
             return 1;
         }
         RelocateElfPlt(my_context->maplib, local_maplib, elf_header);
+#ifdef HAVE_TRACE
         if(trace_func) {
             if (GetGlobalSymbolStartEnd(my_context->maplib, trace_func, &trace_start, &trace_end)) {
                 SetTraceEmu(trace_start, trace_end);
@@ -316,6 +317,7 @@ int FinalizeLibrary(library_t* lib, lib_t* local_maplib, x64emu_t* emu)
                 trace_func = NULL;
             }
         }
+#endif
         RunElfInit(elf_header, emu);
     }
     if(box64_dynarec && strcmp(lib->name, "libfmod.so")==0) {
@@ -702,4 +704,4 @@ lib_t* GetMaplib(library_t* lib)
     if(!lib)
         return NULL;
     return lib->maplib;
-}
\ No newline at end of file
+}