Skip to content

Commit d1a47f7

Browse files
author
tudor
committed
moved params to config.site
1 parent feab835 commit d1a47f7

File tree

2 files changed

+48
-11
lines changed

2 files changed

+48
-11
lines changed

pglite/cibuild/pgbuild.emscripten.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ CC_PGLITE=$CC_PGLITE
2121

2222
cp -r ${PGSRC}/pglite/other/* /tmp/pglite/
2323

24-
25-
CNF="${PGSRC}/configure FLEX=`which flex` --prefix=/tmp/pglite \
26-
--cache-file=/tmp/pglite/config.cache.emscripten \
27-
--disable-spinlocks --disable-largefile --without-llvm \
28-
--without-pam --disable-largefile --with-openssl=no \
29-
--without-readline --without-icu \
30-
--with-uuid=ossp \
31-
--with-zlib --with-libxml --with-libxslt \
32-
${PGDEBUG}"
33-
3424
echo " ==== building wasm MVP:$MVP Debug=${PGDEBUG} with opts : $@ == "
3525

3626
mkdir -p bin
@@ -39,8 +29,9 @@ CC_PGLITE=$CC_PGLITE
3929
#!/bin/bash
4030
TZ=UTC PGTZ=UTC node $(pwd)/src/timezone/zic.cjs \$@
4131
END
32+
export CONFIG_SITE=${PGSRC}/pglite/config.site
4233

43-
if ac_cv_exeext=.cjs emconfigure $CNF --with-template=emscripten
34+
if emconfigure ${PGSRC}/configure
4435
then
4536
echo configure ok
4637
else

pglite/config.site

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# config.site for PostgreSQL custom build
2+
3+
# Installation prefix
4+
prefix=/tmp/pglite
5+
6+
# Cache file location
7+
cache_file=/tmp/pglite/config.cache.emscripten
8+
9+
# Disable spinlocks
10+
ac_cv_spinlock=no
11+
12+
# Disable large file support
13+
ac_cv_sys_large_files=no
14+
15+
# Disable LLVM support
16+
with_llvm=no
17+
18+
# Disable PAM
19+
with_pam=no
20+
21+
# Explicitly disable OpenSSL
22+
with_openssl=no
23+
24+
# Disable readline support
25+
with_readline=no
26+
27+
# Disable ICU support
28+
with_icu=no
29+
30+
# Enable OSSP UUID
31+
with_uuid=ossp
32+
33+
# Enable zlib
34+
with_zlib=yes
35+
36+
# Enable libxml
37+
with_libxml=yes
38+
39+
# Enable libxslt
40+
with_libxslt=yes
41+
42+
# Set extension
43+
ac_cv_exeext=.cjs
44+
45+
# Set template
46+
with_template=emscripten

0 commit comments

Comments
 (0)