diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-27 07:27:19 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-27 07:28:12 -0800 |
commit | 8a36b2583ce970648e3b2b1272d22b884c1f534b (patch) | |
tree | 412abc1e97099e54fb742070254d1f0ae17ccda4 /src | |
parent | 3fee59527a0946b5b4cf90f9387eb902604d306a (diff) | |
download | teliva-8a36b2583ce970648e3b2b1272d22b884c1f534b.tar.gz |
select C99 in luasec
I can't select C99 in luasocket, because I don't know how to include the definition of struct timespec. All this fucking complexity. But hopefully things will build on OpenBSD now.
Diffstat (limited to 'src')
-rw-r--r-- | src/luasec/Makefile | 4 | ||||
-rw-r--r-- | src/luasocket/makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/luasec/Makefile b/src/luasec/Makefile index 732bb3e..b1a52a9 100644 --- a/src/luasec/Makefile +++ b/src/luasec/Makefile @@ -14,10 +14,10 @@ WARN=-Wall -Wpedantic -Wshadow BSD_CFLAGS=-O2 -fPIC $(WARN) $(DEFS) BSD_LDFLAGS=-O -fPIC -shared -linux_CFLAGS=-g -O2 $(WARN) $(DEFS) +linux_CFLAGS=-g -O2 -std=c99 $(WARN) $(DEFS) macosx_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)' -macosx_CFLAGS=-O2 -fno-common $(WARN) $(DEFS) -I/usr/local/opt/openssl@3/include +macosx_CFLAGS=-g -O2 -std=c99 -fno-common $(WARN) $(DEFS) -I/usr/local/opt/openssl@3/include macosx_LDFLAGS=-bundle -undefined dynamic_lookup -L/usr/local/opt/openssl@3/lib INSTALL = install diff --git a/src/luasocket/makefile b/src/luasocket/makefile index b4fd6f9..7c92cff 100644 --- a/src/luasocket/makefile +++ b/src/luasocket/makefile @@ -58,7 +58,7 @@ SO_macosx=so O_macosx=o CC_macosx=gcc DEF_macosx= -DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN -CFLAGS_macosx=-Wall -O2 -fno-common $(DEF) +CFLAGS_macosx=-g -O2 -Wall -fno-common $(DEF) LDFLAGS_macosx= -bundle -undefined dynamic_lookup -o LD_macosx=gcc SOCKET_macosx=usocket.o |