Fix warning on macOS
authorAaron Traas <aaron@traas.org>
Thu, 6 Dec 2018 15:01:34 +0000 (10:01 -0500)
committerAaron Traas <aaron@traas.org>
Thu, 6 Dec 2018 15:01:34 +0000 (10:01 -0500)
Makefile

index d196a56bdec8ba333e9455d8256efe713ccf372b..546ba819ee95d4568049aaf732ec6651d7d082f9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ INC+=$(shell pkg-config --cflags libedit)
 # LLVM/Clang on macOS seems to need -ledit flag for linking
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S),Darwin)
 # LLVM/Clang on macOS seems to need -ledit flag for linking
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S),Darwin)
-    CCFLAGS += -ledit
+    LIBS += -ledit
 endif
 
 OBJS=main.o init.o actions.o score.o misc.o saveresume.o
 endif
 
 OBJS=main.o init.o actions.o score.o misc.o saveresume.o