From 5a976e7e317fa2f8e8a0763068d0a6ebea789a84 Mon Sep 17 00:00:00 2001 From: Erik Pilkington Date: Sun, 5 Apr 2015 01:06:20 -0400 Subject: [PATCH] Fixed the weird hack in the makefile, now uses pkg-config. --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 665d37c..1d9d68d 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,5 @@ CXXFLAGS = -std=c++11 -LDFLAGS = -lcurses -lboost_regex -LDCONFIG = $(shell which ldconfig 2>/dev/null || echo /sbin/ldconfig) -ifneq (,$(findstring libtinfo,$(shell $(LDCONFIG) -p))) -LDFLAGS += -ltinfo -endif - +LDFLAGS = $(shell pkg-config --libs ncurses) -lboost_regex BINS = regex .PHONY: all