ESP32, custom ld_flags

Hello, Arduiners!

Is it possible to specify Linker flags (to be exact: -Wl,--wrap=xTaskCreatePinnedToCore) in my library? Yes I know that I can fix the IDF's ld_flags file but I am wondering if it is possible to do the same without editing global ld_flagsfile.

Thanks!

PS: what I want is to have my own ld_flags while compiling my library.
I tried "ldflags=" of library.properties but it had no effect. Or may be I was doing it wrong :-/. This is what I added to my library.properties:

ldflags=-Wl,--wrap=vTaskDelete -Wl,--wrap=xTaskCreatePinnedToCore -Wl,--wrap=xTaskCreateStaticPinnedToCore

No, it is not possible: a library can't inject any flags to the linker.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.