• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5cd $(dirname $0)
6
7pushd  ../ext/google/protobuf
8phpize --clean
9rm -f configure.in configure.ac
10php make-preload.php
11phpize
12if [ "$1" = "--release" ]; then
13  ./configure --with-php-config=$(which php-config)
14else
15  # To get debugging symbols in PHP itself, build PHP with:
16  #   $ ./configure --enable-debug CFLAGS='-g -O0'
17  ./configure --with-php-config=$(which php-config) CFLAGS="-g -O0 -Wall"
18fi
19make
20popd
21