[Tarantool-patches] [PATCH luajit v1 01/11] build: add src dir in building

Sergey Kaplun skaplun at tarantool.org
Wed Dec 16 22:13:36 MSK 2020


That patch allows including headers by absolute path to them from source
directory like: "utils/uleb128.h".

Part of tarantool/tarantool#5442
---
 src/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 2786348..caa49f9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -156,6 +156,8 @@ XCFLAGS+= -DLUAJIT_SMART_STRINGS=1
 # You probably don't need to change anything below this line!
 ##############################################################################
 
+SRC_DIR=.
+
 ##############################################################################
 # Host system detection.
 ##############################################################################
@@ -225,7 +227,7 @@ TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
 TARGET_DYNXLDOPTS=
 
 TARGET_LFSFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-TARGET_XCFLAGS= $(TARGET_LFSFLAGS) -U_FORTIFY_SOURCE
+TARGET_XCFLAGS= $(TARGET_LFSFLAGS) -U_FORTIFY_SOURCE -I$(SRC_DIR)
 TARGET_XLDFLAGS=
 TARGET_XLIBS= -lm
 TARGET_TCFLAGS= $(CCOPTIONS) $(TARGET_XCFLAGS) $(TARGET_FLAGS) $(TARGET_CFLAGS)
-- 
2.28.0



More information about the Tarantool-patches mailing list