浏览代码

fix static builds with gcc 10.x

Waldemar Brodkorb 4 年之前
父节点
当前提交
4deace34cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Rules.mak

+ 1 - 1
Rules.mak

@@ -288,7 +288,7 @@ OPTIMIZATION += $(CFLAG_-fstrict-aliasing)
 
 # Why -funsigned-char: I hunted a bug related to incorrect
 # sign extension of 'char' type for 10 hours straight. Not fun.
-CPU_CFLAGS-y := -funsigned-char -fno-builtin
+CPU_CFLAGS-y := -funsigned-char -fno-builtin -fcommon
 
 $(eval $(call check-gcc-var,-fno-asm))
 CPU_CFLAGS-y += $(CFLAG_-fno-asm)