summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-11 17:49:23 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-11 17:49:23 +0200
commitc74e415e9246382630035d7a85645a6b93e1efae (patch)
treebbe6463fdf612554b5837116099994c3f11a02c1
parentc038b6a37d65ebf23b34e669414cbb959fc7b2a4 (diff)
Gentoo patch: Use LDLIBS for better custom LDFLAGS support
-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} > $@