configure: Don't add Xen's libs to LDFLAGS
When Xen is detected via pkg-config, it isn't necessary to modify LDFLAGS as modifying libs_softmmu is enough. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
		
							parent
							
								
									2e0e0d4148
								
							
						
					
					
						commit
						17d8825d08
					
				
							
								
								
									
										1
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								configure
									
									
									
									
										vendored
									
									
								
							@ -2359,7 +2359,6 @@ if test "$xen" != "no" ; then
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
    QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)"
 | 
					    QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)"
 | 
				
			||||||
    libs_softmmu="$($pkg_config --libs $xen_pc) $libs_softmmu"
 | 
					    libs_softmmu="$($pkg_config --libs $xen_pc) $libs_softmmu"
 | 
				
			||||||
    LDFLAGS="$($pkg_config --libs $xen_pc) $LDFLAGS"
 | 
					 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    xen_libs="-lxenstore -lxenctrl -lxenguest"
 | 
					    xen_libs="-lxenstore -lxenctrl -lxenguest"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user