make some squeezelite symbol weak to force removal from recovery during link

This commit is contained in:
Philippe G
2021-12-28 20:04:24 -08:00
parent 9b20001c97
commit f076a7260e
7 changed files with 19 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
idf_component_register(SRCS operator.cpp tools.c trace.c
REQUIRES esp_common pthread
idf_component_register( SRCS operator.cpp tools.c trace.c
REQUIRES esp_common pthread
INCLUDE_DIRS .
)
)
#doing our own implementation of new operator for some pre-compiled binaries
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u _ZdlPv")

View File

@@ -32,15 +32,6 @@ extern "C" {
#define ESP_LOG_DEBUG_EVENT(tag,e) ESP_LOGD(tag,"evt: " e)
#ifdef ENABLE_MEMTRACE
void memtrace_print_delta(const char * msg, const char * tag, const char * function);
#define MEMTRACE_PRINT_DELTA() memtrace_print_delta(NULL,TAG,__FUNCTION__);
#define MEMTRACE_PRINT_DELTA_MESSAGE(x) memtrace_print_delta(x,TAG,__FUNCTION__);
#else
#define MEMTRACE_PRINT_DELTA()
#define MEMTRACE_PRINT_DELTA_MESSAGE(x) ESP_LOGD(TAG,"%s",x);
#endif
#ifndef FREE_AND_NULL
#define FREE_AND_NULL(x) if(x) { free(x); x=NULL; }
#endif

View File

@@ -9,8 +9,8 @@
#include "freertos/queue.h"
#include "freertos/task.h"
#include "esp_event.h"
#include "trace.h"
#include "tools.h"
#include "trace.h"
static const char TAG[] = "TRACE";