| Line 16... |
Line 16... |
| 16 |
# we need to force a PIC build of a static library
|
16 |
# we need to force a PIC build of a static library
|
| 17 |
CFLAGS=`${R_HOME}/bin/R CMD config CFLAGS`
|
17 |
CFLAGS=`${R_HOME}/bin/R CMD config CFLAGS`
|
| 18 |
CPICFLAGS=`${R_HOME}/bin/R CMD config CPICFLAGS`
|
18 |
CPICFLAGS=`${R_HOME}/bin/R CMD config CPICFLAGS`
|
| 19 |
CFLAGS="${CFLAGS} ${CPICFLAGS}"
|
19 |
CFLAGS="${CFLAGS} ${CPICFLAGS}"
|
| 20 |
export CC CFLAGS
|
20 |
export CC CFLAGS
|
| 21 |
(cd src/SQLite; ./configure --disable-shared)
|
21 |
(cd src/SQLite; sed -e '/^#include.*stdlib.h/a #include <unistd.h>' tool/lemon.c > lemon.c.tmp; mv lemon.c.tmp tool/lemon.c; ./configure --disable-shared)
|
| 22 |
fi
|
22 |
fi
|
| 23 |
(cd src/SQLite; make)
|
23 |
(cd src/SQLite; make)
|
| 24 |
# we need to pick up the library containing fdatasync
|
24 |
# we need to pick up the library containing fdatasync
|
| 25 |
TLIBS=`sed -n -e'/^TLIBS =/p' src/SQLite/Makefile | sed -e's/^TLIBS = //' `
|
25 |
TLIBS=`sed -n -e'/^TLIBS =/p' src/SQLite/Makefile | sed -e's/^TLIBS = //' `
|
| 26 |
sed -e "s/@TLIBS@/${TLIBS}/" src/Makevars.in > src/Makevars
|
26 |
sed -e "s/@TLIBS@/${TLIBS}/" src/Makevars.in > src/Makevars
|