Index: ports/libevent/build.sh |
diff --git a/ports/libevent/build.sh b/ports/libevent/build.sh |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6b44de767808a45a7978932a6dfd83cfed794de3 |
--- /dev/null |
+++ b/ports/libevent/build.sh |
@@ -0,0 +1,25 @@ |
+# Copyright 2015 The Native Client Authors. All rights reserved. |
+# 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" |
+ 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" |
+ |
+ DefaultConfigureStep |
+} |