summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak7
1 files changed, 5 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index 08340e070..9b0829ac4 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -212,8 +212,8 @@ endif
ifeq ($(TARGET_ARCH),h8300)
CPU_LDFLAGS-$(CONFIG_H8300H)+= -ms8300h
CPU_LDFLAGS-$(CONFIG_H8S) += -ms8300s
- CPU_CFLAGS-$(CONFIG_H8300H) += -mh -mint32 -fsigned-char
- CPU_CFLAGS-$(CONFIG_H8S) += -ms -mint32 -fsigned-char
+ CPU_CFLAGS-$(CONFIG_H8300H) += -mh -mint32
+ CPU_CFLAGS-$(CONFIG_H8S) += -ms -mint32
endif
ifeq ($(TARGET_ARCH),cris)
@@ -291,6 +291,9 @@ XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -
XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS)))
CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFLAGS-y)))
+# Make sure "char" behavior is the same everywhere
+CPU_CFLAGS += -fsigned-char
+
LDADD_LIBFLOAT=
ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
# Add -msoft-float to the CPU_FLAGS since ldso and libdl ignore CFLAGS.