Skip to content

Adjusted Makefile to prevent SQLite calls hitting the system libs which prevents Unity editor crashes in Linux. #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ lib/windows/%/gilzoide-sqlite-net.dll: lib/windows/%/sqlite3.o~ | lib/windows/%

# Linux
lib/linux/%/libgilzoide-sqlite-net.so: CFLAGS += -fPIC
lib/linux/%/libgilzoide-sqlite-net.so: LINKFLAGS += -shared -lm

# Note: The "-Wl,-Bsymbolic" flags prevent the dynamic linker from interposing the plugin’s calls to its
# own exported symbols with identically-named symbols in other loaded libraries (like /usr/lib/libsqlite3.so.0)
# which can cause a Unity Editor crash otherwise.
lib/linux/%/libgilzoide-sqlite-net.so: LINKFLAGS += -shared -lm -Wl,-Bsymbolic

lib/linux/%/libgilzoide-sqlite-net.so: lib/linux/%/sqlite3.o~ | lib/linux/%
$(CC) -o $@ $^ $(LINKFLAGS)

Expand Down
Binary file modified Plugins/lib/linux/x86_64/libgilzoide-sqlite-net.so
Binary file not shown.