diff --git a/Makefile b/Makefile index cd8b5490..2fa7bece 100644 --- a/Makefile +++ b/Makefile @@ -256,5 +256,5 @@ compile_msquic: check_msquic_dependencies update_submodule sed -i 's|\(^ *msquic_lib\)$$|\1 ALL|g' ./dep/msquic/src/bin/CMakeLists.txt cmake -B./dep/msquic/$(TARGET) -S./dep/msquic -DQUIC_BUILD_SHARED=OFF -DCMAKE_TARGET_ARCHITECTURE=$(TARGET_CPU) make -C./dep/msquic/$(TARGET) -j$(shell nproc) - @renameSymbols=$$(objdump -t ./dep/msquic/$(TARGET)/bin/Release/libmsquic.a | awk -v RS= '/_YB80VJ/{next}1' | grep -E 'g +(F|O) ' | grep -Evi ' (ms){0,1}quic' | awk '{print " --redefine-sym " $$NF "=" $$NF "_YB80VJ"}') && \ - objcopy $$renameSymbols ./dep/msquic/$(TARGET)/bin/Release/libmsquic.a \ No newline at end of file + $(eval renameSymbols=$(shell objdump -t ./dep/msquic/$(TARGET)/bin/Release/libmsquic.a | awk -v RS= '/_YB80VJ/{next}1' | grep -E 'g +F .text' | grep -Evi ' (ms){0,1}quic' | awk '{print " --redefine-sym " $$NF "=" $$NF "_YB80VJ"}')) + @objcopy $(renameSymbols) ./dep/msquic/$(TARGET)/bin/Release/libmsquic.a \ No newline at end of file