This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: AArch64 sim
- From: Nicholas Clifton <nickc at redhat dot com>
- To: Andre Vieira <Andre dot SimoesDiasVieira at arm dot com>, vapier at gentoo dot org
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 2 Jul 2015 14:53:52 +0100
- Subject: Re: RFA: AArch64 sim
- Authentication-results: sourceware.org; auth=none
- References: <87vbe8hvfo dot fsf at redhat dot com> <559501B1 dot 6090801 at arm dot com>
Hi Andre,
I realize EXTRA_SIM_CFLAGS with "-lm" is in there to deal with the use
of math lib. Though I think EXTRA_SIM_CFLAGS is being expanded too early
in the compile command, i.e. before libsim.a is passed on. Shouldn't it
be put after libsim.a? As it could potentially cause a linker failure.
You are right, although strangely it still works for me...
Anyway, please could you test out the patch below. If it works for you
then I will check it in.
Cheers
Nick
diff --git a/sim/arm/Makefile.in b/sim/arm/Makefile.in
index 7605588..1eeec25 100644
--- a/sim/arm/Makefile.in
+++ b/sim/arm/Makefile.in
@@ -17,7 +17,8 @@
## COMMON_PRE_CONFIG_FRAG
-SIM_EXTRA_CFLAGS = -DMODET -lm
+SIM_EXTRA_CFLAGS = -DMODET
+SIM_EXTRA_LIBS = -lm
SIM_OBJS = \
wrapper.o \