From b3902dd397b059877981ee67ebb28cb4720cb7a1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 Dec 1996 20:44:46 +0000 Subject: [PATCH] * Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the end. (gprof): Put $(CFLAGS) after the other options. --- gprof/ChangeLog | 6 ++++++ gprof/Makefile.in | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 3d17369c52b..621e6ec94a6 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,9 @@ +Tue Dec 31 15:44:10 1996 Ian Lance Taylor + + * Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the + end. + (gprof): Put $(CFLAGS) after the other options. + Tue Nov 26 17:08:38 1996 Ian Lance Taylor * configure: Rebuild with autoconf 2.12. diff --git a/gprof/Makefile.in b/gprof/Makefile.in index a9bce7a3063..2b4402ef883 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -56,7 +56,7 @@ LDFLAGS= HLDFLAGS = @HLDFLAGS@ HLDENV = @HLDENV@ .c.o: - $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $< + $(CC) -c -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $(CFLAGS) $< all: $(GEN_FILES) $(PROG) @@ -104,7 +104,7 @@ install: all $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1 gprof: $(OBJS) $(LIBDEPS) - $(HLDENV) $(CC) -o $(PROG) $(CFLAGS) $(HLDFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) + $(HLDENV) $(CC) -o $(PROG) $(HLDFLAGS) $(LDFLAGS) $(CFLAGS) $(OBJS) $(LIBS) mostlyclean: -rm -f *.o core gprof nohup.out \ -- 2.30.2