aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-04-07 21:44:54 +0100
committerJustin Clark-Casey (justincc)2011-04-07 23:19:42 +0100
commit7b989e84326449ecb42e25ac8bcd4a4d79c1d8c0 (patch)
treee46597bf3d3ec87f79447a6e226440671ae1f634
parentRemove the SQLite legacy adaptor. This is no longer needed now that the main... (diff)
downloadopensim-SC_OLD-7b989e84326449ecb42e25ac8bcd4a4d79c1d8c0.zip
opensim-SC_OLD-7b989e84326449ecb42e25ac8bcd4a4d79c1d8c0.tar.gz
opensim-SC_OLD-7b989e84326449ecb42e25ac8bcd4a4d79c1d8c0.tar.bz2
opensim-SC_OLD-7b989e84326449ecb42e25ac8bcd4a4d79c1d8c0.tar.xz
Bundle a built-from-source Mac OS X sqlite3 universal dylib with OpenSim and use this instead of the system one.
This means that Mac OS X users can now use the standard sqlite adaptor instead of the legacy one. This is SQLite 3.7.5. I configured the build with the line CFLAGS="-Os -g -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -arch ppc7400 -DSQLITE_ENABLE_COLUMN_METADATA" LDFLAGS="-arch i386 -arch x86_64 -arch ppc7400" ./configure --disable-dependency-tracking The SQLITE_ENABLE_COLUMN_METADATA flag exports the metadata symbols that modern Mono SQLite adaptors need. The -Os removes debugging symbols (as per the sqlite3 source pkg README) The other parts are to cross compile for x86_64, i386 and ppc. On Mac OS X, Mono can actually only P/INVOKE 32-bit libraries even on 64 bit platforms so i386 is being used. The dylib has not been tested on ppc.
-rw-r--r--bin/Mono.Data.Sqlite.dll.config1
-rwxr-xr-xbin/libsqlite3.dylibbin0 -> 2175300 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/bin/Mono.Data.Sqlite.dll.config b/bin/Mono.Data.Sqlite.dll.config
index 6a95476..ccc0cf5 100644
--- a/bin/Mono.Data.Sqlite.dll.config
+++ b/bin/Mono.Data.Sqlite.dll.config
@@ -1,4 +1,5 @@
1<configuration> 1<configuration>
2 <dllmap os="osx" dll="sqlite3" target="./libsqlite3.dylib" />
2 <dllmap os="!windows,osx" cpu="x86-64,ia64" wordsize="64" dll="sqlite3" target="./libsqlite3_64.so" /> 3 <dllmap os="!windows,osx" cpu="x86-64,ia64" wordsize="64" dll="sqlite3" target="./libsqlite3_64.so" />
3 <dllmap os="!windows,osx" cpu="x86" wordsize="32" dll="sqlite3" target="./libsqlite3_32.so" /> 4 <dllmap os="!windows,osx" cpu="x86" wordsize="32" dll="sqlite3" target="./libsqlite3_32.so" />
4</configuration> 5</configuration>
diff --git a/bin/libsqlite3.dylib b/bin/libsqlite3.dylib
new file mode 100755
index 0000000..94dcca8
--- /dev/null
+++ b/bin/libsqlite3.dylib
Binary files differ