mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Centralize lua defines
We need to ensure that we defined Numbers as int64_t everywhere we build for lua. Previously, we were compiling part of the code with Numbers as int64_t and part as double. Move lua number definition to a more-central location
This commit is contained in:
parent
9ed6f9efda
commit
ff4cd9bfb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329857
@ -5,6 +5,8 @@
|
||||
.PATH: ${LUASRC}
|
||||
.PATH: ${LIBLUASRC}
|
||||
|
||||
.include "${BOOTSRC}/lua.mk"
|
||||
|
||||
LIB= lua
|
||||
INTERNALLIB=
|
||||
|
||||
@ -25,9 +27,8 @@ SRCS+= lerrno.c lfs.c lstd.c lutils.c
|
||||
|
||||
WARNS= 3
|
||||
|
||||
CFLAGS+= -DLUA_FLOAT_TYPE=LUA_FLOAT_INT64
|
||||
CFLAGS+= -DLUA_PATH_DEFAULT=\"/boot/lua/\?.lua\"
|
||||
CFLAGS+= -ffreestanding -nostdlib -DBOOT_LUA -DLUA_USE_POSIX
|
||||
CFLAGS+= -ffreestanding -nostdlib -DLUA_USE_POSIX
|
||||
CFLAGS+= -fno-stack-protector -D__BSD_VISIBLE
|
||||
CFLAGS+= -I${BOOTSRC}/include -I${LIBLUASRC} -I${LUASRC} -I${LDRSRC}
|
||||
|
||||
|
@ -2,11 +2,6 @@
|
||||
|
||||
# Common flags to build lua related files
|
||||
|
||||
.include "defs.mk"
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${LUASRC} -I${LDRSRC} -I${LIBLUASRC}
|
||||
CFLAGS+= -DBOOT_LUA
|
||||
# CFLAGS+= -Ddouble=jagged-little-pill -Dfloat=poison-shake -D__OMIT_FLOAT
|
||||
CFLAGS+= -DLUA_FLOAT_TYPE=LUA_FLOAT_INT64
|
||||
|
Loading…
Reference in New Issue
Block a user