diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-13 11:52:46 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-13 11:52:46 +0000 |
| commit | 75a5ee36c276ffcbe037286bfcbbcd9b7ec4a902 (patch) | |
| tree | a3bb6c6fc9bb40e6e0d413d8deda9171b8b149eb | |
| parent | 504f0708f8f998f5046f7aa20302eafa0cadcb26 (diff) | |
| download | busybox-w32-75a5ee36c276ffcbe037286bfcbbcd9b7ec4a902.tar.gz busybox-w32-75a5ee36c276ffcbe037286bfcbbcd9b7ec4a902.tar.bz2 busybox-w32-75a5ee36c276ffcbe037286bfcbbcd9b7ec4a902.zip | |
- check if CC supports -funsigned-char
- add CC_MAJOR and CC_MINOR variables. (gcc centric for now)
git-svn-id: svn://busybox.net/trunk/busybox@12871 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | Rules.mak | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -81,9 +81,15 @@ CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS))) | |||
| 81 | #GCCINCDIR:=$(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | 81 | #GCCINCDIR:=$(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") |
| 82 | 82 | ||
| 83 | WARNINGS=-Wall -Wstrict-prototypes -Wshadow | 83 | WARNINGS=-Wall -Wstrict-prototypes -Wshadow |
| 84 | CFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir) -funsigned-char | 84 | CFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir) |
| 85 | ARFLAGS=cru | 85 | ARFLAGS=cru |
| 86 | 86 | ||
| 87 | |||
| 88 | # gcc centric. Perhaps fiddle with findstring gcc,$(CC) for the rest | ||
| 89 | # get the CC MAJOR/MINOR version | ||
| 90 | CC_MAJOR:=$(shell printf "%02d" $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n 1)) | ||
| 91 | CC_MINOR:=$(shell printf "%02d" $(shell echo __GNUC_MINOR__ | $(CC) -E -xc - | tail -n 1)) | ||
| 92 | |||
| 87 | #-------------------------------------------------------- | 93 | #-------------------------------------------------------- |
| 88 | export VERSION BUILDTIME HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP | 94 | export VERSION BUILDTIME HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP |
| 89 | ifeq ($(strip $(TARGET_ARCH)),) | 95 | ifeq ($(strip $(TARGET_ARCH)),) |
| @@ -117,6 +123,8 @@ export MAKE_IS_SILENT=y | |||
| 117 | SECHO=-@false | 123 | SECHO=-@false |
| 118 | endif | 124 | endif |
| 119 | 125 | ||
| 126 | CFLAGS+=$(call check_gcc,-funsigned-char,) | ||
| 127 | |||
| 120 | #-------------------------------------------------------- | 128 | #-------------------------------------------------------- |
| 121 | # Arch specific compiler optimization stuff should go here. | 129 | # Arch specific compiler optimization stuff should go here. |
| 122 | # Unless you want to override the defaults, do not set anything | 130 | # Unless you want to override the defaults, do not set anything |
