Skip to contentSkip to conversation

configure: Avoid compiling system tools on user build by default

PATCH Superseded Philippe Mathieu-Daudé 3 participants 4 messages Feb 15, 2020 – Feb 17, 2020

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Avoid compiling system tools on user build by default

User-mode does not need the sytem tools. Do not build them by default if user specified --disable-system.

---
 configure | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
configure +10 -1
index 16f94cd96b..557ca4bd04 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,15 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test "$want_tools" != "yes" && test "$softmmu" = "no"; then
+    want_tools=no
+fi
+if test -z "$want_tools"; then
+    want_tools=yes
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
Signature · 1 line
2.21.1
#2 lore raw
In reply to Philippe Mathieu-Daudé

5:23 PM Sub, 15.02.2020. Philippe Mathieu-Daudé <[email protected]> је написао/ла:

Quoted 9 lines

User-mode does not need the sytem tools. Do not build them by default if user specified --disable-system.

---
 configure | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

It would be nice if somebody comes up with more detailed analysis on what is built for --disable-system, but in fact not needed at all.

How does your change affect the size of the executable?

Quoted 33 lines
configure +10 -2
index 16f94cd96b..557ca4bd04 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,15 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test "$want_tools" != "yes" && test "$softmmu" = "no"; then
+    want_tools=no
+fi
+if test -z "$want_tools"; then
+    want_tools=yes
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
--

2.21.1

#3 lore raw
Quoted 6 lines · Aleksandar Markovic

5:23 PM Sub, 15.02.2020. Philippe Mathieu-Daudé <[email protected]> је написао/ла:

Quoted 4 lines

User-mode does not need the sytem tools. Do not build them by default if user specified --disable-system.

Quoted 7 lines
Quoted 5 lines
---
 configure | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

It would be nice if somebody comes up with more detailed analysis on what is built for --disable-system, but in fact not needed at all.

This patch disable building the following binary on a user-only build:

- elf2dmp
- qemu-edid
- qemu-ga
- qemu-img
- qemu-io
- qemu-nbd
- ivshmem-client
- ivshmem-server

Maybe Laurent can amend that to the description, else I can respin.

Quoted 1 line

How does your change affect the size of the executable?

Their size depends of the build option used (i.e. -ggdb vs -Os -s).

The bigger difference is the build runs faster.

Quoted 33 lines
Quoted 33 lines
configure +10 -2
index 16f94cd96b..557ca4bd04 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,15 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test "$want_tools" != "yes" && test "$softmmu" = "no"; then
+    want_tools=no
+fi
+if test -z "$want_tools"; then
+    want_tools=yes
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
--

2.21.1