Add experimental static linking support to the makefile
This commit is contained in:
parent
01dba547fb
commit
4d222bbb33
|
@ -1,4 +1,5 @@
|
|||
debug ?= yes
|
||||
static ?= no
|
||||
pedantic ?= yes
|
||||
|
||||
ifeq ($(debug),yes)
|
||||
|
@ -58,6 +59,11 @@ else
|
|||
LDFLAGS += -rdynamic
|
||||
endif
|
||||
|
||||
ifeq ($(static),yes)
|
||||
LIBS += -ltinfo -lgpm
|
||||
LDFLAGS += -static -pthread
|
||||
endif
|
||||
|
||||
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -Wno-address
|
||||
|
||||
all : kak
|
||||
|
|
Loading…
Reference in New Issue
Block a user