summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--src/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 31b62a6..7723b20 100644
--- a/config.mk
+++ b/config.mk
@@ -32,4 +32,4 @@ dmalloc = -DWITH_DMALLOC
CFLAGS += ${xinerama} -DPREFIX=\"${PREFIX}\" \
-DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\"
-LDFLAGS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}
+LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib ${xinerama_ld}
diff --git a/src/Makefile b/src/Makefile
index a5ea9b0..ed1ecc8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,7 +4,7 @@ TARGETS = ${shell echo *.c}
OBJECTS = ${TARGETS:.c=.o}
feh: deps.mk ${OBJECTS}
- ${CC} ${CFLAGS} -o $@ ${OBJECTS} ${LDFLAGS}
+ ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS}
deps.mk: ${TARGETS}
${CC} -MM ${TARGETS} > $@