commit:     4c9a3b2f82783e7a97c4503778aadb1d2b06e14b
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 27 05:04:57 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 05:04:57 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=4c9a3b2f

build: add lazy support for STATIC=yes builds

 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index baa27c2..949b375 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,8 @@ CPPFLAGS  ?=
 CPPFLAGS  += -DENABLE_NLS=$(call istrue,$(NLS))
 DBG_CFLAGS = -O0 -DEBUG -g3 -ggdb -fno-pie $(call check_gcc, 
-fsanitize=address -fsanitize=leak -fsanitize=undefined)
 #CFLAGS   += -Os -DOPTIMIZE_FOR_SIZE=2 -falign-functions=2 -falign-jumps=2 
-falign-labels=2 -falign-loops=2
-#LDFLAGS  := -pie
+LDFLAGS_static_1 = -static
+LDFLAGS   += $(LDFLAGS_static_$(call istrue,$(STATIC)))
 LIBADD    += $(shell echo | $(CC) -dM -E - | grep -q ' __FreeBSD__' && echo 
'-lkvm')
 LIBADD    += -liniparser
 DESTDIR   :=

Reply via email to