Commit 3fe86e8a authored by Andreas Gustafsson's avatar Andreas Gustafsson

include ${CFLAGS} on linker command line so that

"configure CFLAGS=-pg && make" does the right thing
parent 31e471c6
......@@ -45,7 +45,7 @@ SRCS = main.c client.c err_pkt.c \
@BIND9_MAKE_RULES@
lwresd: ${OBJS} ${UOBJS} ${DEPLIBS}
${LIBTOOL} ${CC} -o $@ ${OBJS} ${UOBJS} ${LIBS}
${LIBTOOL} ${CC} ${CFLAGS} -o $@ ${OBJS} ${UOBJS} ${LIBS}
clean distclean::
rm -f ${TARGETS}
......@@ -56,7 +56,7 @@ main.@O@: main.c
-DNS_SYSCONFDIR=\"${sysconfdir}\" -c ${srcdir}/main.c
named: ${OBJS} ${UOBJS} ${DEPLIBS}
${LIBTOOL} ${CC} -o $@ ${OBJS} ${UOBJS} ${LIBS}
${LIBTOOL} ${CC} ${CFLAGS} -o $@ ${OBJS} ${UOBJS} ${LIBS}
clean distclean::
rm -f ${TARGETS}
......
......@@ -42,7 +42,7 @@ SRCS = rndc.c
@BIND9_MAKE_RULES@
rndc: ${OBJS} ${DEPLIBS}
${LIBTOOL} ${CC} -o $@ ${OBJS} ${LIBS}
${LIBTOOL} ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
clean distclean::
rm -f ${TARGETS}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment