diff options
| author | seyko <seyko2@gmail.com> | 2016-05-20 15:55:36 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-05-20 15:55:36 +0300 |
| commit | d0e48c51c769dc84dc3ed8c4a1b5b07360faa818 (patch) | |
| tree | b6d71395b558df2ee029ba72cd9bb5cc7c6e1deb /lib/Makefile | |
| parent | 18cbe62e69863e185a69ba7349a5a08f94afecd7 (diff) | |
| download | tinycc-d0e48c51c769dc84dc3ed8c4a1b5b07360faa818.tar.gz tinycc-d0e48c51c769dc84dc3ed8c4a1b5b07360faa818.tar.bz2 | |
[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
Diffstat (limited to 'lib/Makefile')
| -rw-r--r-- | lib/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Makefile b/lib/Makefile index 8f48656..3b904d4 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 |
