Chromium Code Reviews| Index: ports/libevent/build.sh |
| diff --git a/ports/libevent/build.sh b/ports/libevent/build.sh |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb4b09c2e8c3dbab783968830c01d854103756a5 |
| --- /dev/null |
| +++ b/ports/libevent/build.sh |
| @@ -0,0 +1,25 @@ |
| +# Copyright (c) 2015 The Native Client Authors. All rights reserved. |
|
Sam Clegg
2015/07/16 00:26:30
nit: drop the (c)
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +# following flag are needed only if you want to run samples in devenv |
| +NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main" |
| +export LIBS="${NACL_CLI_MAIN_LIB}" |
| + |
| + |
| +ConfigureStep() { |
| + if [ "${NACL_LIBC}" = "newlib" ]; then |
| + NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
| + export LIBS+=" -lglibc-compat" |
| + # setitimer and getitimer not available in newlib, no plan to implement them |
| + #TODO(dt) remove this flag once this issue is sorted. |
| + EXTRA_CONFIGURE_ARGS+=" --disable-libevent-regress " |
|
Sam Clegg
2015/07/16 00:26:30
nit: drop the trailing space
|
| + fi |
| + |
| +# This flag is not required when NACL_SHARED != 0[default] |
| +# however if you come across any problem while static linking, |
| +# uncomment following line and try again |
| +# EXTRA_CONFIGURE_ARGS+=" --enable-shared=no --enable-static=yes" |
|
Sam Clegg
2015/07/16 00:26:29
nit: indent these commented out lines too.
Do you
|
| + |
| + DefaultConfigureStep |
| +} |