From 823283edca0d8403742999917a4ff0698ad641cb Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 21 Apr 2008 16:30:10 +0000 Subject: Argument parsing. Some other stuff too. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 783b7ce..ee4ca1e 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,13 @@ INSTALLDIR=$(INSTALL) -d CFLAGS=-O2 -g -D_GNU_SOURCE -Werror -Wall -Wstrict-prototypes -std=gnu99 \ -DAPK_VERSION=\"$(FULL_VERSION)\" -LDFLAGS=-g -lpthread -nopie +LDFLAGS=-g -nopie +LIBS=-lpthread + +ifeq ($(STATIC),yes) +CFLAGS+=-fno-stack-protector +LDFLAGS+=-static +endif DESTDIR= SBINDIR=/usr/sbin -- cgit v1.2.3-70-g09d2