Commits

Greg Ward committed 0215eb0

build: add LDFLAGS so we can link with -g too

Comments (0)

Files changed (1)

-
 CFLAGS = -Wall -Wextra -Wno-unused-parameter -std=gnu99 -g
+LDFLAGS = -g
 LIBS = @LIBS@
 
 headers = $(wildcard src/*.h) config.h
 objects = $(subst .c,.o,$(sources))
 
 vcprompt: $(objects) Makefile
-	$(CC) -o $@ $(objects) $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ $(objects) $(LIBS)
 
 Makefile: Makefile.in configure
 	./configure -C