From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= Date: Thu, 19 Nov 2015 16:29:02 +0200 Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release --- src/lj_dispatch.c | 5 ----- src/luajit.c | 1 - src/luajit_rolling.h | 3 --- 3 files changed, 9 deletions(-) Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c =================================================================== --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/lj_dispatch.c 2025-03-11 23:04:30.000000000 +0100 +++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c 2025-03-25 17:07:26.955530316 +0100 @@ -318,11 +318,6 @@ return 1; /* OK. */ } -/* Enforce (dynamic) linker error for version mismatches. See luajit.c. */ -LUA_API void LUAJIT_VERSION_SYM(void) -{ -} - /* -- Hooks --------------------------------------------------------------- */ /* This function can be called asynchronously (e.g. during a signal). */ Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c =================================================================== --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit.c 2025-03-11 23:04:30.000000000 +0100 +++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c 2025-03-25 17:07:26.956030878 +0100 @@ -530,7 +530,6 @@ int argn; int flags = 0; globalL = L; - LUAJIT_VERSION_SYM(); /* Linker-enforced version check. */ argn = collectargs(argv, &flags); if (argn < 0) { /* Invalid args? */ Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h =================================================================== --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit_rolling.h 2025-03-11 23:04:30.000000000 +0100 +++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h 2025-03-25 17:07:26.956298722 +0100 @@ -73,8 +73,5 @@ LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt, int depth, size_t *len); -/* Enforce (dynamic) linker error for version mismatches. Call from main. */ -LUA_API void LUAJIT_VERSION_SYM(void); - #error "DO NOT USE luajit_rolling.h -- only include build-generated luajit.h" #endif