mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 22:36:00 +00:00
Keep libfakeinput's C++ runtime private
libfakeinput.so links libstdc++ and libgcc statically and is preloaded into every session process, so it exported the whole C++ runtime (~7000 symbols, __gxx_personality_v0 and __cxa_* among them). Programs then unwound through its copy: shadPS4 aborted in pthread_exit the first time a game thread ended (forced unwind -> foreign personality -> terminate). Link with --exclude-libs,ALL so only the input hooks are exported, fail the build if the runtime leaks out again, and bump the preload cache so it is rebuilt.
This commit is contained in:
1 parent
d64859fb72
commit
699ead23f2
2 files changed
+9
-3
No files matched your search
@@ -100,7 +100,7 @@ docker run --rm --platform linux/amd64 \
|
||||
d=app/src/main/assets/linuxfs
|
||||
mkdir -p "$d"
|
||||
aarch64-linux-gnu-g++ -shared -fPIC -O2 -Wall -Wno-attributes -Wno-nonnull-compare \
|
||||
-pthread -std=c++17 -static-libstdc++ -static-libgcc \
|
||||
-pthread -std=c++17 -static-libstdc++ -static-libgcc -Wl,--exclude-libs,ALL \
|
||||
-o "$d/libfakeinput.so" app/src/main/cpp/fakeinput_steam.cpp -ldl
|
||||
aarch64-linux-gnu-strip --strip-unneeded "$d/libfakeinput.so"
|
||||
aarch64-linux-gnu-gcc -shared -fPIC -O2 -Wall -pthread \
|
||||
|
||||
Reference in new issue
Block a user