Skip to content

Commit

Permalink
Try to fix libmsquic.a in arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
DrakenLibra committed Oct 30, 2023
1 parent 54a5618 commit b15b56b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,6 @@ compile_msquic: check_msquic_dependencies update_submodule
mkdir -p ./dep/msquic/$(TARGET)
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)
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

0 comments on commit b15b56b

Please sign in to comment.