diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-22 18:36:04 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-22 18:36:04 -0800 |
commit | ef680411370a5f999b0127f6cad1a8db6fcc2dd7 (patch) | |
tree | b58eb1a8abdabbbcfdcf57231e870d006c0f8c81 /src/luasocket | |
parent | 3b4d7131cbe4615b24d96e2b053b8b38cafd6fd8 (diff) | |
download | teliva-ef680411370a5f999b0127f6cad1a8db6fcc2dd7.tar.gz |
standardize CFLAGS in luasocket
Diffstat (limited to 'src/luasocket')
-rw-r--r-- | src/luasocket/makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/luasocket/makefile b/src/luasocket/makefile index c087a19..06e7ab2 100644 --- a/src/luasocket/makefile +++ b/src/luasocket/makefile @@ -49,7 +49,7 @@ LDIR_macosx?=share/lua/$(LUAV) # /usr/local/include/lua$(LUAV) # where lua headers are found for linux builds LUAINC_linux_base?=/usr/include -LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) $(LUAINC_linux_base)/lua$(LUAV) +LUAINC_linux?=.. LUAPREFIX_linux?=/usr/local CDIR_linux?=lib/lua/$(LUAV) LDIR_linux?=share/lua/$(LUAV) @@ -174,8 +174,7 @@ SO_linux=so O_linux=o CC_linux=gcc DEF_linux=-DLUASOCKET_$(DEBUG) -CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \ - -Wimplicit -O2 -g +CFLAGS_linux=-g -O2 -Wall -Wpedantic -Wshadow -Wextra -Wimplicit $(LUAINC:%=-I%) $(DEF) LDFLAGS_linux= -o LD_linux=ld SOCKET_linux=usocket.o @@ -286,8 +285,8 @@ CC=$(CC_$(PLAT)) DEF=$(DEF_$(PLAT)) AR= ar rc RANLIB= ranlib -CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT)) -LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT)) +CFLAGS=$(CFLAGS_$(PLAT)) $(MYCFLAGS) +LDFLAGS=$(LDFLAGS_$(PLAT)) $(MYLDFLAGS) LD=$(LD_$(PLAT)) LUAINC= $(LUAINC_$(PLAT)) LUALIB= $(LUALIB_$(PLAT)) |