33 | | close the fossil file |
34 | | ~$ cd sqlite |
35 | | ~/sqlite$ fossil close ../trunk.fossil |
| 33 | DO NOT close the fossil file! It will remove manifest.uuid and not compile! |
| 34 | = Makefile.sqlite = |
| 35 | |
| 36 | Just figured out how to get SQLite to compile! First, install the rtems-graphics-toolkit/mman_kit |
| 37 | |
| 38 | Second, comment out the references to popen and pclose in rtems-addon-packages/sqlite/src/shell.c |
| 39 | |
| 40 | Third, copy the Makefile below into rtems-addon-packages/RTEMS_Makefiles/Makefile.sqlite |
| 41 | {{{ |
| 42 | # |
| 43 | # Configure/build/install the sqlite library |
| 44 | # note: comment out the references to popen and pclose in src/shell.c |
| 45 | # until a reasonable substitution can be found |
| 46 | |
| 47 | include ../RTEMS_Makefiles/Makefile.common |
| 48 | |
| 49 | all: |
| 50 | CFLAGS='-DPROT_READ=0x01 -DPROT_WRITE=0x02 -DMAP_SHARED=0x001 -DSQLITE_OMIT_ALTERTABLE=2 ' \ |
| 51 | LDFLAGS='-lmmap_kit' \ |
| 52 | ../sqlite/configure \ |
| 53 | --prefix=$(exec_prefix) \ |
| 54 | --build=i686-linux-gnu \ |
| 55 | --host=i386-rtems4.11 \ |
| 56 | --disable-largefile \ |
| 57 | --enable-cross-thread-connections \ |
| 58 | --disable-tcl \ |
| 59 | --disable-readline \ |
| 60 | --disable-amalgamation \ |
| 61 | --libdir=$(exec_prefix)/$(RTEMS_BSP)/lib \ |
| 62 | --includedir=$(exec_prefix)/$(RTEMS_BSP)/lib/include |
| 63 | make |
| 64 | make install |
| 65 | }}} |
| 66 | |