The R Project SVN R-packages

Rev

Rev 3700 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3700 Rev 4590
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; sed -e '/^#include.*stdlib.h/a\
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
#include <unistd.h>' tool/lemon.c > lemon.c.tmp; mv lemon.c.tmp tool/lemon.c; ./configure --disable-shared)
22
fi
23
fi
23
(cd src/SQLite; make)
24
(cd src/SQLite; make)
24
# we need to pick up the library containing fdatasync
25
# we need to pick up the library containing fdatasync
25
TLIBS=`sed -n -e'/^TLIBS =/p' src/SQLite/Makefile | sed -e's/^TLIBS = //' `
26
TLIBS=`sed -n -e'/^TLIBS =/p' src/SQLite/Makefile | sed -e's/^TLIBS = //' `
26
sed -e "s/@TLIBS@/${TLIBS}/" src/Makevars.in > src/Makevars
27
sed -e "s/@TLIBS@/${TLIBS}/" src/Makevars.in > src/Makevars