This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] Use LDFLAGS when linking simulators


This patch has been in our internal tree for a while; we've needed it
since the simulator started bringing in zlib for BFD's benefit, since
our zlib is in an unusual path.  I've committed this as obvious.

-- 
Daniel Jacobowitz
CodeSourcery

2008-10-21  Julian Brown  <julian@codesourcery.com>

	* Make-common.in (run$(EXEEXT)): Add LDFLAGS.

Index: common/Make-common.in
===================================================================
RCS file: /cvs/src/src/sim/common/Make-common.in,v
retrieving revision 1.29
diff -u -p -r1.29 Make-common.in
--- common/Make-common.in	7 Jun 2008 01:31:25 -0000	1.29
+++ common/Make-common.in	21 Oct 2008 19:46:38 -0000
@@ -260,7 +260,7 @@ libsim.a: $(LIB_OBJS)
 	$(RANLIB) libsim.a
 
 run$(EXEEXT): $(SIM_RUN_OBJS) libsim.a $(LIBDEPS)
-	$(CC) $(ALL_CFLAGS) -o run$(EXEEXT) \
+	$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o run$(EXEEXT) \
 	  $(SIM_RUN_OBJS) libsim.a $(EXTRA_LIBS)
 
 run.o: $(srccom)/run.c config.h tconfig.h $(remote_sim_h) $(callback_h)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]