Difference between revisions of "SQLite3"

From CBLFS
Jump to navigationJump to search
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://www.sqlite.org/sqlite-{{SQLite3-Version}}.tar.gz
 
| http://www.sqlite.org/sqlite-{{SQLite3-Version}}.tar.gz
 +
|-
 +
!Required Patch:
 +
| http://svn.cross-lfs.org/svn/repos/patches/sqlite/sqlite-{{SQLite3-Version}}-build_fix-1.patch
 
|-
 
|-
 
|}
 
|}
Line 18: Line 21:
 
Compile the package:
 
Compile the package:
  
AT_M4DIR="m4" autoreconf -v &&
+
  patch -Np1 -i ../sqlite-{{SQLite3-Version}}-build_fix-1.patch &&
LDFLAGS="-ldl" ./configure --prefix=/usr \
+
  ./configure --prefix=/usr \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-load-extension &&
 
     --enable-load-extension &&
Line 35: Line 38:
  
 
  export USE_ARCH=32 &&
 
  export USE_ARCH=32 &&
  AT_M4DIR="m4" autoreconf -v &&
+
  patch -Np1 -i ../sqlite-{{SQLite3-Version}}-build_fix-1.patch &&
  LDFLAGS="-ldl" CC="gcc ${BUILD32}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-load-extension &&
 
     --enable-load-extension &&
Line 51: Line 54:
  
 
  export USE_ARCH=n32 &&
 
  export USE_ARCH=n32 &&
  AT_M4DIR="m4" autoreconf -v &&
+
  patch -Np1 -i ../sqlite-{{SQLite3-Version}}-build_fix-1.patch &&
  LDFLAGS="-ldl" CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 --with-tcl=/usr/lib32 \
 
     --libdir=/usr/lib32 --with-tcl=/usr/lib32 \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-threadsafe --enable-threads-override-locks \
Line 68: Line 71:
  
 
  export USE_ARCH=64 &&
 
  export USE_ARCH=64 &&
  AT_M4DIR="m4" autoreconf -v &&
+
  patch -Np1 -i ../sqlite-{{SQLite3-Version}}-build_fix-1.patch &&
  LDFLAGS="-ldl" CC="gcc ${BUILD64}" ./configure --prefix=/usr \
+
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 --with-tcl=/usr/lib64 \
 
     --libdir=/usr/lib64 --with-tcl=/usr/lib64 \
 
     --enable-threadsafe --enable-threads-override-locks \
 
     --enable-threadsafe --enable-threads-override-locks \

Revision as of 20:37, 20 June 2009

Download Source: http://www.sqlite.org/sqlite-3071502.tar.gz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/sqlite/sqlite-3071502-build_fix-1.patch

Introduction to SQLite3

SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Project Homepage: http://www.sqlite.org/

Dependencies

Optional

Non-Multilib

Compile the package:

 patch -Np1 -i ../sqlite-3071502-build_fix-1.patch &&
 ./configure --prefix=/usr \
    --enable-threadsafe --enable-threads-override-locks \
    --enable-load-extension &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
patch -Np1 -i ../sqlite-3071502-build_fix-1.patch &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-threadsafe --enable-threads-override-locks \
    --enable-load-extension &&
make

Install the package

make install &&
unset USE_ARCH

N32

Compile the package:

export USE_ARCH=n32 &&
patch -Np1 -i ../sqlite-3071502-build_fix-1.patch &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --with-tcl=/usr/lib32 \
    --enable-threadsafe --enable-threads-override-locks \
    --enable-load-extension &&
make

Install the package

make install &&
unset USE_ARCH

64Bit

Compile the package:

export USE_ARCH=64 &&
patch -Np1 -i ../sqlite-3071502-build_fix-1.patch &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --with-tcl=/usr/lib64 \
    --enable-threadsafe --enable-threads-override-locks \
    --enable-load-extension &&
make

Install the package

make install &&
unset USE_ARCH

Contents

Installed Directories: None
Installed Programs: sqlite3
Installed Libraries: libsqlite3.{a,la,so}
Retrieved from "?title=SQLite3&oldid=18464"