diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 8 | ||||
-rw-r--r-- | src/luaconf.h | 11 |
2 files changed, 4 insertions, 15 deletions
diff --git a/src/Makefile b/src/Makefile index 0340f88..3eec72b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -87,7 +87,7 @@ ansi: freebsd: $(MAKE) -C luasocket bsd $(MAKE) -C luasec bsd - $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lncursesw" + $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lncursesw" generic: $(MAKE) all MYCFLAGS= @@ -96,15 +96,15 @@ linux: $(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) -C luasocket linux $(MAKE) -C luasec linux - $(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lncursesw" + $(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -ldl -lncursesw" macosx: $(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) -C luasocket macosx $(MAKE) -C luasec macosx - $(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_LINUX" MYLIBS="-L/usr/local/opt/openssl@3/lib -lncurses" + $(MAKE) all MYCFLAGS="-Wpedantic -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-L/usr/local/opt/openssl@3/lib -lncurses" # use this on Mac OS X 10.3- -# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX +# $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_DL_DYLD" openbsd: $(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)" diff --git a/src/luaconf.h b/src/luaconf.h index 73df77f..6d30f18 100644 --- a/src/luaconf.h +++ b/src/luaconf.h @@ -33,17 +33,6 @@ #define LUA_WIN #endif -#if defined(LUA_USE_LINUX) -#define LUA_USE_POSIX -#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ -#endif - -#if defined(LUA_USE_MACOSX) -#define LUA_USE_POSIX -#define LUA_DL_DYLD /* does not need extra library */ -#endif - - /* @@ LUA_USE_POSIX includes all functionallity listed as X/Open System |