Implement -D option.
authorMike Krinkin <krinkin.m.u@gmail.com>
Fri, 10 Apr 2015 20:22:13 +0000 (23:22 +0300)
committerMike Krinkin <krinkin.m.u@gmail.com>
Fri, 10 Apr 2015 20:22:13 +0000 (23:22 +0300)
The buildscript help says that it has support of the -D option,
while it actually hasn't. This patch add support of the -D option.

build/build.sh

index 31d67fcb8c7a8b5e04ed96b7757b032c6bf7b1d5..b30b9623d0c30dcd7f3ce3b36155eb12743299f3 100644 (file)
@@ -121,6 +121,10 @@ while [ $# -gt 0 ]
         makejobs=$2
                shift 2
                ;;
+   -D)
+       EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -D$2"
+               shift 2
+               ;;
    -h)
         usage
         exit $ERROR_EXIT_CODE;;