File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,10 @@ lib/windows/%/gilzoide-sqlite-net.dll: lib/windows/%/sqlite3.o~ | lib/windows/%
4040# Linux
4141lib/linux/% /libgilzoide-sqlite-net.so : CFLAGS += -fPIC
4242
43- # Note: The line "-Wl,-Bsymbolic" prevents 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- # And the line "-Wl,-rpath,'$$ORIGIN'" ensures the loader finds the .so’s dependencies (if any) in the same
46- # folder as the plugin itself. Without these adjustments using the SQLite .so in the Unity editor will cause the
47- # editor to crash.
48- lib/linux/% /libgilzoide-sqlite-net.so : LINKFLAGS += \
49- -shared -lm \
50- -Wl,-Bsymbolic \
51- -Wl,-rpath,'$$ORIGIN'
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
5247
5348lib/linux/% /libgilzoide-sqlite-net.so : lib/linux/% /sqlite3.o~ | lib/linux/%
5449 $(CC ) -o $@ $^ $(LINKFLAGS )
You can’t perform that action at this time.
0 commit comments