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