Support for building bfd and opcodes as shared libraries, based on
authorIan Lance Taylor <ian@airs.com>
Mon, 5 Feb 1996 21:35:22 +0000 (21:35 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 5 Feb 1996 21:35:22 +0000 (21:35 +0000)
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in (LIBDEPS): New variable.
(LIBS): Use -L../bfd -lbfd.
(gprof): Depend upon $(LIBDEPS) rather than $(LIBS).

gprof/ChangeLog
gprof/Makefile.in

index e2987023b84c67e1f00d071077a13c2533442601..be88f6e269b036cd285473a28f474f06a585c7df 100644 (file)
@@ -1,3 +1,11 @@
+Mon Feb  5 16:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       Support for building bfd and opcodes as shared libraries, based on
+       patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
+       * Makefile.in (LIBDEPS): New variable.
+       (LIBS): Use -L../bfd -lbfd.
+       (gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
+
 Sat Dec 30 10:11:03 1995  Jeffrey A Law  (law@cygnus.com)
 
        * gprof.c (long_options): Add "--function-ordering" and
index 825a6566a3e0728cda38e634c35191dc8d92a42b..fb7234f12f0842bf0763d2a244750e2dca860b48 100644 (file)
@@ -40,7 +40,8 @@ SRCS= $(MY_TARGET).c basic_blocks.c call_graph.c \
        gmon_io.c gprof.c hertz.c hist.c source.c search_list.c symtab.c \
        sym_ids.c utils.c
 
-LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
+LIBDEPS = ../bfd/libbfd.a ../libiberty/libiberty.a
+LIBS = -L../bfd -lbfd ../libiberty/libiberty.a
 
 OBJS=  $(MY_TARGET).o basic_blocks.o bsd_callg_bl.o call_graph.o \
        cg_arcs.o cg_dfn.o cg_print.o core.o flat_bl.o fsf_callg_bl.o \
@@ -100,7 +101,7 @@ install: all
        $(INSTALL_XFORM) gprof $(bindir)/gprof
        $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
 
-gprof: $(OBJS) $(LIBS)
+gprof: $(OBJS) $(LIBDEPS)
        $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
 
 mostlyclean: