From f5c9713e777bc0f0a61daab64965f9708d48152a Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Tue, 24 Jul 2012 02:10:35 -0400 Subject: [PATCH] Respect LDFLAGS --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 184fb25..a8da42e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -11,6 +11,7 @@ PROG = pkgconf@EXEEXT@ SRCS = main.c pkg.c bsdstubs.c getopt_long.c fragment.c argvsplit.c fileio.c tuple.c dependency.c OBJS = ${SRCS:.c=.o} CFLAGS = @CFLAGS@ +LDFLAGS = @LDFLAGS@ CFLAGS += -DLIBDIR=\"${libdir}\" -DINCLUDEDIR=\"${includedir}\" -DPKG_DEFAULT_PATH=\"${libdir}/pkgconfig:${datadir}/pkgconfig\" -Wall -Wextra -Wformat=2 -std=gnu99 -D_FORTIFY_SOURCE=2 all: build @@ -33,7 +34,7 @@ valgrind-check: $(PROG) $(SHELL) tests/run.sh 'valgrind --leak-check=full --show-reachable=yes ./$(PROG)' $(PROG): $(OBJS) - ${CC} -o $@ $(OBJS) + ${CC} ${LDFLAGS} -o $@ $(OBJS) .c.o: ${CC} ${CFLAGS} -c $< -o $@