瀏覽代碼

glibc: fix builds for m68k/x86_64

Waldemar Brodkorb 8 年之前
父節點
當前提交
ea4cdfb231
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      toolchain/glibc/Makefile

+ 6 - 0
toolchain/glibc/Makefile

@@ -6,6 +6,12 @@ include ../rules.mk
 include Makefile.inc
 include ${ADK_TOPDIR}/mk/buildhlp.mk
 
+# glibc does not compile with Os and CPU specific FLAGS for m68k/x86_64
+ifeq ($(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_ARCH_M68K),y)
+TARGET_CFLAGS:=		-O2
+TARGET_CXXFLAGS:=	-O2
+endif
+
 GLIBC_CONFOPTS:=	--build=$(GNU_HOST_NAME) \
 			--host=$(GNU_TARGET_NAME) \
 			--with-headers=$(STAGING_TARGET_DIR)/usr/include \