From d0e48c51c769dc84dc3ed8c4a1b5b07360faa818 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 20 May 2016 15:55:36 +0300 Subject: [PATCH] [avih] a custom build dir fix for lib/Makefile mkdir build; cd build ../configure && make ../../lib/libtcc1.c:31: error: include file 'stddef.h' not found Author: Avi Halachmi Date: Sat Nov 14 18:40:36 2015 +0200 When building from the root tcc dir, $TOP and $top_srcdir are the same, but with a custom build dir, we need top_srcdir --- lib/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 8f486565..3b904d42 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -75,22 +75,22 @@ else ifeq "$(TARGET)" "i386" OBJ = $(addprefix $(DIR)/,$(I386_O)) TGT = -DTCC_TARGET_I386 - XCC ?= $(TCC) -B$(TOP) + XCC ?= $(TCC) -B$(top_srcdir) else ifeq "$(TARGET)" "x86_64" OBJ = $(addprefix $(DIR)/,$(X86_64_O)) TGT = -DTCC_TARGET_X86_64 - XCC ?= $(TCC) -B$(TOP) + XCC ?= $(TCC) -B$(top_srcdir) else ifeq "$(TARGET)" "arm" OBJ = $(addprefix $(DIR)/,$(ARM_O)) TGT = -DTCC_TARGET_ARM - XCC ?= $(TCC) -B$(TOP) + XCC ?= $(TCC) -B$(top_srcdir) else ifeq "$(TARGET)" "arm64" OBJ = $(addprefix $(DIR)/,$(ARM64_O)) TGT = -DTCC_TARGET_ARM64 - XCC ?= $(TCC) -B$(TOP) + XCC ?= $(TCC) -B$(top_srcdir) else $(error libtcc1.a not supported on target '$(TARGET)') endif