Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153570262
D24610.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24610.diff
View Options
Index: head/lib/liblua/Makefile
===================================================================
--- head/lib/liblua/Makefile
+++ head/lib/liblua/Makefile
@@ -26,4 +26,9 @@
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC}
CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
+.if defined(BOOTSTRAPPING)
+CFLAGS+= -DLUA_PATH_DEFAULT="\"/nonexistent/?.lua\""
+CFLAGS+= -DLUA_CPATH_DEFAULT="\"/nonexistent/?.so\""
+.endif
+
.include <bsd.lib.mk>
Index: head/lib/liblua/luaconf.h
===================================================================
--- head/lib/liblua/luaconf.h
+++ head/lib/liblua/luaconf.h
@@ -208,12 +208,16 @@
#define LUA_ROOT "/usr/local/"
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
+#if !defined(LUA_PATH_DEFAULT)
#define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
"./?.lua;" "./?/init.lua"
+#endif
+#if !defined(LUA_CPATH_DEFAULT)
#define LUA_CPATH_DEFAULT \
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
+#endif
#endif /* } */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 12:20 AM (13 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32004284
Default Alt Text
D24610.diff (1 KB)
Attached To
Mode
D24610: liblua: ensure that "require" will fail in bootstrap flua
Attached
Detach File
Event Timeline
Log In to Comment