File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,9 @@ install_data(script_files, install_dir: r2_scripts)
502
502
503
503
libsdb_sp = subproject (' sdb' )
504
504
libsdb_static = libsdb_sp.get_variable (' libsdb_static' )
505
+ libsdb_dynamic = libsdb_sp.get_variable (' libsdb' ).get_shared_lib()
505
506
libsdb_includes = libsdb_sp.get_variable (' sdb_inc' )
507
+ libsdb_version = libsdb_sp.get_variable (' sdb_version' )
506
508
507
509
sdb_dep = declare_dependency (
508
510
link_whole : libsdb_static,
@@ -528,7 +530,7 @@ sdb_install = custom_target('r2sdb',
528
530
install_dir : get_option (' bindir' ))
529
531
530
532
os_name = host_machine .system()
531
- lib_extension = ' .so' # Default for Linux
533
+ lib_extension = ' .so. ' + libsdb_version # Default for Linux
532
534
533
535
if os_name == ' darwin'
534
536
lib_extension = ' .dylib'
@@ -537,8 +539,8 @@ elif os_name == 'windows'
537
539
endif
538
540
539
541
libsdb_install = custom_target (' libr2sdb' ,
540
- input : libsdb_static ,
541
- output : ' libr2sdb ' + lib_extension,
542
+ input : libsdb_dynamic ,
543
+ output : ' libsdb ' + lib_extension,
542
544
command : copyinout,
543
545
install : true ,
544
546
install_dir : get_option (' libdir' ))
You can’t perform that action at this time.
0 commit comments