 2c13c57441
			
		
	
	
		2c13c57441
		
	
	
	
	
		
			
			While the option still needs to be parsed in the configure script (it's needed by tests/tcg, and also to decide about recursing into contrib/plugins), passing it to Meson can be done with -D instead of using config-host.mak. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			731 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			731 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| plugin_ldflags = []
 | |
| # Modules need more symbols than just those in plugins/qemu-plugins.symbols
 | |
| if not enable_modules
 | |
|   if targetos == 'darwin'
 | |
|     configure_file(
 | |
|       input: files('qemu-plugins.symbols'),
 | |
|       output: 'qemu-plugins-ld64.symbols',
 | |
|       capture: true,
 | |
|       command: ['sed', '-ne', 's/^[[:space:]]*\\(qemu_.*\\);/_\\1/p', '@INPUT@'])
 | |
|     plugin_ldflags = ['-Wl,-exported_symbols_list,plugins/qemu-plugins-ld64.symbols']
 | |
|   else
 | |
|     plugin_ldflags = ['-Xlinker', '--dynamic-list=' + (meson.project_source_root() / 'plugins/qemu-plugins.symbols')]
 | |
|   endif
 | |
| endif
 | |
| 
 | |
| if get_option('plugins')
 | |
|   specific_ss.add(files(
 | |
|     'loader.c',
 | |
|     'core.c',
 | |
|     'api.c',
 | |
|   ), declare_dependency(link_args: plugin_ldflags))
 | |
| endif
 |