From 6a73fba1b7e33badfe3d6f7f749bc87e500a39a5 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 27 Oct 2016 12:41:14 +0200 Subject: Make static build default The current glibc seems to have a bug in fmemopen leading to a segfault on fgetwc. Right now, I don't care enough to fix that problem at the source. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7af28d3..e38c684 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ LOLCAT_SRC := lolcat.c CENSOR_SRC := censor.c -CFLAGS := -std=c11 -Wall +CFLAGS := -std=c11 -Wall -g DESTDIR := /usr/local/bin @@ -11,7 +11,7 @@ ifeq ($(shell uname -s),Darwin) CFLAGS += -Imemorymapping/src endif -all: lolcat censor +all: lolcat-static censor-static .PHONY: install clean musl static @@ -38,8 +38,8 @@ censor: $(CENSOR_SRC) gcc $(CFLAGS) -o $@ $^ install: lolcat censor - install lolcat $(DESTDIR)/ - install censor $(DESTDIR)/ + install lolcat-static $(DESTDIR)/lolcat + install censor-static $(DESTDIR)/censor clean: rm -f lolcat lolcat-static.o lolcat-static censor censor-static.o censor-static -- cgit