From: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 2 Jun 2018 15:01:24 +0000 (+0200)
Subject: Do not strip at link stage
X-Git-Url: https://git.xinqibao.xyz/dmenu.git/commitdiff_plain/a9eae39e934d8dab7f1772570efb5f25825bfe01?ds=sidebyside

Do not strip at link stage

Building with debug symbols is worthless unless LDFLAGS are manually adjusted
as well.
---

diff --git a/config.mk b/config.mk
index 528704c..ae34ad8 100644
--- a/config.mk
+++ b/config.mk
@@ -25,7 +25,7 @@ LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
 # flags
 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
 CFLAGS   = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
-LDFLAGS  = -s $(LIBS)
+LDFLAGS  = $(LIBS)
 
 # compiler and linker
 CC = cc