mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
[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
This commit is contained in:
parent
18cbe62e69
commit
d0e48c51c7
@ -75,22 +75,22 @@ else
|
|||||||
ifeq "$(TARGET)" "i386"
|
ifeq "$(TARGET)" "i386"
|
||||||
OBJ = $(addprefix $(DIR)/,$(I386_O))
|
OBJ = $(addprefix $(DIR)/,$(I386_O))
|
||||||
TGT = -DTCC_TARGET_I386
|
TGT = -DTCC_TARGET_I386
|
||||||
XCC ?= $(TCC) -B$(TOP)
|
XCC ?= $(TCC) -B$(top_srcdir)
|
||||||
else
|
else
|
||||||
ifeq "$(TARGET)" "x86_64"
|
ifeq "$(TARGET)" "x86_64"
|
||||||
OBJ = $(addprefix $(DIR)/,$(X86_64_O))
|
OBJ = $(addprefix $(DIR)/,$(X86_64_O))
|
||||||
TGT = -DTCC_TARGET_X86_64
|
TGT = -DTCC_TARGET_X86_64
|
||||||
XCC ?= $(TCC) -B$(TOP)
|
XCC ?= $(TCC) -B$(top_srcdir)
|
||||||
else
|
else
|
||||||
ifeq "$(TARGET)" "arm"
|
ifeq "$(TARGET)" "arm"
|
||||||
OBJ = $(addprefix $(DIR)/,$(ARM_O))
|
OBJ = $(addprefix $(DIR)/,$(ARM_O))
|
||||||
TGT = -DTCC_TARGET_ARM
|
TGT = -DTCC_TARGET_ARM
|
||||||
XCC ?= $(TCC) -B$(TOP)
|
XCC ?= $(TCC) -B$(top_srcdir)
|
||||||
else
|
else
|
||||||
ifeq "$(TARGET)" "arm64"
|
ifeq "$(TARGET)" "arm64"
|
||||||
OBJ = $(addprefix $(DIR)/,$(ARM64_O))
|
OBJ = $(addprefix $(DIR)/,$(ARM64_O))
|
||||||
TGT = -DTCC_TARGET_ARM64
|
TGT = -DTCC_TARGET_ARM64
|
||||||
XCC ?= $(TCC) -B$(TOP)
|
XCC ?= $(TCC) -B$(top_srcdir)
|
||||||
else
|
else
|
||||||
$(error libtcc1.a not supported on target '$(TARGET)')
|
$(error libtcc1.a not supported on target '$(TARGET)')
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user