Skip to content

How to use msquic and webrtc at the same time? #3471

Answered by FH0
FH0 asked this question in Q&A
Discussion options

You must be logged in to vote

Finally solved by objcopy. Only prefix with msquic|quic symbols are exported.

compile_msquic: 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)
	$(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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wfurt
Comment options

wfurt Mar 3, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Answer selected by FH0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants