Add homebrew's readline paths
authorFabio Utzig <utzig@utzig.org>
Thu, 8 Jan 2015 11:52:30 +0000 (09:52 -0200)
committerFabio Utzig <utzig@utzig.org>
Thu, 8 Jan 2015 11:52:30 +0000 (09:52 -0200)
Makefile

index 8d2e7679d34da6aec3e8411a8ac902c10851c78c..546f5722cb53d4d26c67e4be547a1dd3492ae6ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,9 +37,9 @@ LDLIBS = -lstdc++ -lm
 SED = sed
 
 ifeq (Darwin,$(findstring Darwin,$(shell uname)))
-       # add macports include and library path to search directories, don't use '-rdynamic' and '-lrt':
-       CXXFLAGS += -I/opt/local/include
-       LDFLAGS += -L/opt/local/lib
+       # add macports/homebrew include and library path to search directories, don't use '-rdynamic' and '-lrt':
+       CXXFLAGS += -I/opt/local/include -I/usr/local/opt/readline/include
+       LDFLAGS += -L/opt/local/lib -L/usr/local/opt/readline/lib
        SED = gsed
 else
        LDFLAGS += -rdynamic