Skip to content

Commit 38f683e

Browse files
author
BirdeeHub
committed
ci(build): slight refactor of makefile args
1 parent 2d2d5cc commit 38f683e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ CC ?= gcc
55
LUA ?= lua
66
BEAR ?= bear
77
GREP ?= grep
8-
CFLAGS ?= -O3 -flto -Wl,-s -Winline
8+
CFLAGS ?= -x c -O3 -flto -Wl,-s -Winline
9+
LIBFLAG ?= -fPIC -shared
910

10-
CFLAGS += -x c -fPIC -shared -I"$(LUA_INCDIR)"
11+
CFLAGS += $(LIBFLAG) -I"$(LUA_INCDIR)"
1112
TESTDIR := $(SRC)/tests
1213
SRCS := $(SRC)/src/tomlua.c \
1314
$(SRC)/src/decode_str.c \

0 commit comments

Comments
 (0)