Skip to content

Commit

Permalink
Use link_with defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 28, 2024
1 parent 2f9072d commit b0d14ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ libsdb = both_libraries(libsdb_name, libsdb_sources,
#else
# link_with = libsdb.get_shared_lib()
#endif
default_library_type = get_option('default_library')

link_with = libsdb.get_shared_lib()
if default_library_type == 'shared'
link_with = libsdb.get_shared_lib()
else
link_with = libsdb.get_static_lib()
endif

#link_with = libsdb.get_shared_lib()

sdb_dep = declare_dependency(
link_with: libsdb.get_static_lib(),
link_with: [link_with],
include_directories: sdb_inc
)

Expand Down

0 comments on commit b0d14ad

Please sign in to comment.