File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ lib/windows/%/gilzoide-sqlite-net.dll: lib/windows/%/sqlite3.o~ | lib/windows/%
39
39
40
40
# Linux
41
41
lib/linux/% /libgilzoide-sqlite-net.so : CFLAGS += -fPIC
42
- lib/linux/% /libgilzoide-sqlite-net.so : LINKFLAGS += -shared -lm
42
+
43
+ # Note: The "-Wl,-Bsymbolic" flags prevent the dynamic linker from interposing the plugin’s calls to its
44
+ # own exported symbols with identically-named symbols in other loaded libraries (like /usr/lib/libsqlite3.so.0)
45
+ # which can cause a Unity Editor crash otherwise.
46
+ lib/linux/% /libgilzoide-sqlite-net.so : LINKFLAGS += -shared -lm -Wl,-Bsymbolic
47
+
43
48
lib/linux/% /libgilzoide-sqlite-net.so : lib/linux/% /sqlite3.o~ | lib/linux/%
44
49
$(CC ) -o $@ $^ $(LINKFLAGS )
45
50
You can’t perform that action at this time.
0 commit comments