* [Qemu-devel] [PATCH] configure: Use ${config_host_ld} variable
@ 2013-06-05 15:02 Ed Maste
2013-06-05 20:03 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
0 siblings, 1 reply; 3+ messages in thread
From: Ed Maste @ 2013-06-05 15:02 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Ed Maste
Signed-off-by: Ed Maste <emaste@freebsd.org>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 1654413..ec833df 100755
--- a/configure
+++ b/configure
@@ -4445,7 +4445,7 @@ fi
if test "$ARCH" = "tci"; then
linker_script=""
else
- linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
+ linker_script="-Wl,-T../${config_host_ld} -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
fi
if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
--
1.7.11.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] configure: Use ${config_host_ld} variable
2013-06-05 15:02 [Qemu-devel] [PATCH] configure: Use ${config_host_ld} variable Ed Maste
@ 2013-06-05 20:03 ` Michael Tokarev
2013-06-05 20:11 ` Ed Maste
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2013-06-05 20:03 UTC (permalink / raw)
To: Ed Maste; +Cc: qemu-trivial, qemu-devel
05.06.2013 19:02, Ed Maste wrote:
> - linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
> + linker_script="-Wl,-T../${config_host_ld} -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
Do we really care? To me it looks like it is better
to just remove the variable (which is nothing but just
an extra indirection) and be done with it.
The variable has been introduced by this commit:
commit 4bf6b55b346d33ff16dd25f75bbea8e21f95dfa6
Author: Juan Quintela <quintela@redhat.com>
Date: Wed Jul 22 22:37:40 2009 +0200
set SEARCH_PATH for the linker script from output of ld --verbose -v
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
which description does not cover introduction of
this variable, and apparently it meant to be something
different really. The thing is: that commit introduced
that envvar, but at the same time, added several
references to open-coded name (config-host.ld) into
several places (including the one which is being
patched now).
I really don't see a point to have it in a variable at all.
Ditto for $config_host_mak for that matter.
Both are used in makefiles as well, and used there
directly.
Maybe just get rid of that cruft? If there will be
a need for actual variable, it will be trivial to
introduce it and patch in this single place where
it is referenced... :)
Thanks,
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] configure: Use ${config_host_ld} variable
2013-06-05 20:03 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
@ 2013-06-05 20:11 ` Ed Maste
0 siblings, 0 replies; 3+ messages in thread
From: Ed Maste @ 2013-06-05 20:11 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-trivial, qemu-devel
On 5 June 2013 16:03, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 05.06.2013 19:02, Ed Maste wrote:
>> - linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
>> + linker_script="-Wl,-T../${config_host_ld} -Wl,-T,\$(SRC_PATH)/ldscripts/\$(ARCH).ld"
>
> Do we really care? To me it looks like it is better
> to just remove the variable (which is nothing but just
> an extra indirection) and be done with it.
I don't really care one way or another, and am happy to expand the
other uses of it if that's preferred; it just seems odd to me to use
the variable in one spot and the literal filename in another.
(I found this while doing a little cleanup in preparation to avoid use
of the ldscripts/ files on FreeBSD.)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-05 20:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 15:02 [Qemu-devel] [PATCH] configure: Use ${config_host_ld} variable Ed Maste
2013-06-05 20:03 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-06-05 20:11 ` Ed Maste
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).