From 2471dcf0b2687b0cca87b503d31449bd70f13cbc Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 1 Oct 2015 16:19:58 +0200 Subject: [PATCH] Cleanup (fsnotifier compile script) --- native/fsNotifier/linux/make.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/native/fsNotifier/linux/make.sh b/native/fsNotifier/linux/make.sh index cdb060c8eb7c..549c62bed930 100755 --- a/native/fsNotifier/linux/make.sh +++ b/native/fsNotifier/linux/make.sh @@ -1,18 +1,13 @@ #!/bin/sh + CC_FLAGS="-O3 -Wall -std=c99 -D_DEFAULT_SOURCE" if [ -f "/usr/include/gnu/stubs-32.h" ] ; then echo "compiling 32-bit version" - clang -m32 $CC_FLAGS -o fsnotifier main.c inotify.c util.c - if [ $? -eq 0 ] ; then - chmod 755 fsnotifier - fi + clang -m32 ${CC_FLAGS} -o fsnotifier main.c inotify.c util.c && chmod 755 fsnotifier fi if [ -f "/usr/include/gnu/stubs-64.h" ] ; then echo "compiling 64-bit version" - clang -m64 $CC_FLAGS -o fsnotifier64 main.c inotify.c util.c - if [ $? -eq 0 ] ; then - chmod 755 fsnotifier64 - fi -fi + clang -m64 ${CC_FLAGS} -o fsnotifier64 main.c inotify.c util.c && chmod 755 fsnotifier64 +fi \ No newline at end of file