This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Use LDFLAGS when linking simulators
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 21 Oct 2008 15:52:07 -0400
- Subject: [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)