generation with GCC 6.x 81/104681/1 accepted/tizen/base/20161216.190357 submit/tizen_base/20161215.002923
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 14 Dec 2016 05:52:28 +0000 (14:52 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 14 Dec 2016 05:53:27 +0000 (14:53 +0900)
In GCC 6.1 preprocessor behavior was changed.
It failed to correctly generate lib_gen.c .
This patch is imported from upstream and fixes the issue.

Change-Id: I58a3beb4f583147963135a6b6b4cb146f93d6238
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
ncurses/base/MKlib_gen.sh

index d8cc3c9..47f390a 100755 (executable)
@@ -62,7 +62,7 @@ if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 if test "${LC_COLLATE+set}"  = set; then LC_COLLATE=C;  export LC_COLLATE;  fi
 
-preprocessor="$1 -DNCURSES_INTERNALS -I../include"
+preprocessor="$1 -P -DNCURSES_INTERNALS -I../include"
 AWK="$2"
 USE="$3"