Skip to content

Commit

Permalink
Tweak use CFLAGS not CXXFLAGS as we use CC not CXX
Browse files Browse the repository at this point in the history
timelimit.c is compiled with the normal C compiler not with C++ so lets
use the proper set of flags e.g. CFLAGS instead of CXXFLAGS.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 29161fd commit 2d66547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/Makefile.in
Expand Up @@ -77,7 +77,7 @@ bpluginfo: Makefile bpluginfo.o ../lib/libbareos$(DEFAULT_ARCHIVE_TYPE)
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ bpluginfo.o -lbareos $(GETTEXT_LIBS)

timelimit.o: timelimit.c
${CC} ${DEFS} ${DEBUG} $(CXXFLAGS) -DHAVE_ERRNO_H -DHAVE_SETITIMER -DHAVE_SIGACTION -c timelimit.c
${CC} ${DEFS} ${DEBUG} $(CFLAGS) -DHAVE_ERRNO_H -DHAVE_SETITIMER -DHAVE_SIGACTION -c timelimit.c

timelimit: timelimit.o
$(LIBTOOL) --silent --mode=link $(CC) $(LDFLAGS) -o $@ timelimit.o
Expand Down

0 comments on commit 2d66547

Please sign in to comment.