add configure option to enable static linking

This commit is contained in:
Thanos Makatos
2016-03-09 13:26:13 +03:00
parent 35c43716c9
commit c6a2620f5d
2 changed files with 13 additions and 0 deletions

View File

@@ -119,6 +119,10 @@ else
CXXLIB+=-lstdc++
endif
ifeq ("@STATIC@", "yes")
LDFLAGS+=-static
endif
INSTALL:=@INSTALL@
PREFIX:=@prefix@
BINDIR:=$(DESTDIR)$(PREFIX)/sbin