Skip to contentSkip to conversation

buildsys: Move brlapi libs to per object

PATCH In review Fam Zheng 3 participants 4 messages Sep 7, 2017 – Sep 8, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 buildsys: Move brlapi libs to per object

baum.o already receives the sdl cflags in its per object variable, do the same for brlapi libs to avoid cluttering libs_softmmu.

---
 chardev/Makefile.objs | 1 +
 configure             | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
chardev/Makefile.objs +1 -0
index 52a8127606..d68e1347f9 100644
@@ -20,5 +20,6 @@ chardev-obj-$(CONFIG_WIN32) += char-win-stdio.o
 common-obj-y += msmouse.o wctablet.o testdev.o
 common-obj-$(CONFIG_BRLAPI) += baum.o
 baum.o-cflags := $(SDL_CFLAGS)
+baum.o-libs := $(BRLAPI_LIBS)
 
 common-obj-$(CONFIG_SPICE) += spice.o
configure +1 -1
index fb7e34a901..d718718cfa 100755
@@ -3106,7 +3106,6 @@ int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); }
 EOF
   if compile_prog "" "$brlapi_libs" ; then
     brlapi=yes
-    libs_softmmu="$brlapi_libs $libs_softmmu"
   else
     if test "$brlapi" = "yes" ; then
       feature_not_found "brlapi" "Install brlapi devel"
@@ -5693,6 +5692,7 @@ if test "$curl" = "yes" ; then
 fi
 if test "$brlapi" = "yes" ; then
   echo "CONFIG_BRLAPI=y" >> $config_host_mak
+  echo "BRLAPI_LIBS=$brlapi_libs" >> $config_host_mak
 fi
 if test "$bluez" = "yes" ; then
   echo "CONFIG_BLUEZ=y" >> $config_host_mak
Signature · 1 line
2.13.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Fam Zheng

baum.o already receives the sdl cflags in its per object variable, do the same for brlapi libs to avoid cluttering libs_softmmu.

Quoted 37 lines
---
  chardev/Makefile.objs | 1 +
  configure             | 2 +-
  2 files changed, 2 insertions(+), 1 deletion(-)
chardev/Makefile.objs +1 -0
index 52a8127606..d68e1347f9 100644
@@ -20,5 +20,6 @@ chardev-obj-$(CONFIG_WIN32) += char-win-stdio.o
  common-obj-y += msmouse.o wctablet.o testdev.o
  common-obj-$(CONFIG_BRLAPI) += baum.o
  baum.o-cflags := $(SDL_CFLAGS)
+baum.o-libs := $(BRLAPI_LIBS)
 
  common-obj-$(CONFIG_SPICE) += spice.o
configure +1 -1
index fb7e34a901..d718718cfa 100755
@@ -3106,7 +3106,6 @@ int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); }
  EOF
    if compile_prog "" "$brlapi_libs" ; then
      brlapi=yes
-    libs_softmmu="$brlapi_libs $libs_softmmu"
    else
      if test "$brlapi" = "yes" ; then
        feature_not_found "brlapi" "Install brlapi devel"
@@ -5693,6 +5692,7 @@ if test "$curl" = "yes" ; then
  fi
  if test "$brlapi" = "yes" ; then
    echo "CONFIG_BRLAPI=y" >> $config_host_mak
+  echo "BRLAPI_LIBS=$brlapi_libs" >> $config_host_mak
  fi
  if test "$bluez" = "yes" ; then
    echo "CONFIG_BLUEZ=y" >> $config_host_mak
Reviewed-by on v1 1/1
#2 lore raw
In reply to Fam Zheng

----- Original Message -----

Quoted 4 lines

baum.o already receives the sdl cflags in its per object variable, do the same for brlapi libs to avoid cluttering libs_softmmu.

Quoted 41 lines
---
 chardev/Makefile.objs | 1 +
 configure             | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
chardev/Makefile.objs +1 -0
index 52a8127606..d68e1347f9 100644
@@ -20,5 +20,6 @@ chardev-obj-$(CONFIG_WIN32) += char-win-stdio.o
 common-obj-y += msmouse.o wctablet.o testdev.o
 common-obj-$(CONFIG_BRLAPI) += baum.o
 baum.o-cflags := $(SDL_CFLAGS)
+baum.o-libs := $(BRLAPI_LIBS)
 
 common-obj-$(CONFIG_SPICE) += spice.o
configure +0 -1
index fb7e34a901..d718718cfa 100755
@@ -3106,7 +3106,6 @@ int main( void ) { return brlapi__openConnection (NULL,
 NULL, NULL); }
 EOF
   if compile_prog "" "$brlapi_libs" ; then
     brlapi=yes
-    libs_softmmu="$brlapi_libs $libs_softmmu"
   else
     if test "$brlapi" = "yes" ; then

feature_not_found "brlapi" "Install brlapi devel"

configure +1 -1
@@ -5693,6 +5692,7 @@ if test "$curl" = "yes" ; then
 fi
 if test "$brlapi" = "yes" ; then
   echo "CONFIG_BRLAPI=y" >> $config_host_mak
+  echo "BRLAPI_LIBS=$brlapi_libs" >> $config_host_mak
 fi
 if test "$bluez" = "yes" ; then
   echo "CONFIG_BLUEZ=y" >> $config_host_mak
--

2.13.5