From cb31a8aa7af931ceffc0ccb507fa9d52b6a27cde Mon Sep 17 00:00:00 2001 From: George Joseph Date: Sun, 19 Oct 2014 17:07:50 +0000 Subject: build: Force -fsigned-char on platforms where the default for char is unsigned gcc on the ARM platform defaults 'char' to 'unsigned char' whereas Intel and SPARC default to 'signed char'. This is only an issue in the rare cases where negative values are assigned to a 'char' but this this patch insures compatibility by detecting platforms that default to 'unsigned' and adding an '-fsigned-char' flag to _ASTCFLAGS. If compiling for ARM (native or cross-compile) be sure to run ./bootstrap.sh and ./configure to regenerate the build files. You shouldn't have to do this for Intel or SPARC. Tested-by: George Joseph Review: https://reviewboard.asterisk.org/r/4091/ ........ Merged revisions 425964 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425965 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- makeopts.in | 1 + 1 file changed, 1 insertion(+) (limited to 'makeopts.in') diff --git a/makeopts.in b/makeopts.in index 5c3b605bd..39e105d6d 100644 --- a/makeopts.in +++ b/makeopts.in @@ -60,6 +60,7 @@ PTHREAD_LIBS=@PTHREAD_LIBS@ CONFIG_CFLAGS=@CONFIG_CFLAGS@ CONFIG_LDFLAGS=@CONFIG_LDFLAGS@ +CONFIG_SIGNED_CHAR=@CONFIG_SIGNED_CHAR@ GNU_LD=@GNU_LD@ WEAKREF=@PBX_WEAKREF@ -- cgit v1.2.3