Respect LDFLAGS #29

Merged
jdhore merged 1 commits from master into master 2012-07-24 06:32:30 +00:00
1 changed files with 2 additions and 1 deletions

View File

@ -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 $@