Skip to content
Snippets Groups Projects
Commit 37563d98 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

fix build of the shared library

sync perl mods
parent 94bededb
No related branches found
No related tags found
No related merge requests found
Showing
with 9 additions and 2 deletions
......@@ -845,6 +845,7 @@ binary_c_subdir_deps = []
src_subdirs = run_command('meson/source_directories.sh').stdout().strip().split('\n')
src_root_sourcefiles = run_command('meson/source_files.sh','./src').stdout().strip().split('\n')
API_sourcefiles = run_command('meson/source_files.sh','./src/API').stdout().strip().split('\n')
# build the objects from each subdir into their own static library
foreach src_subdir : src_subdirs
......@@ -946,10 +947,13 @@ binary_c_shared_library = shared_library(
dependencies : [
dependencies
],
sources : [
precompiled_headers,
API_sourcefiles,
],
c_args : [
cflags,
quoted_cflags_list,
'--whole-archive',
quoted_cflags_list,
],
link_whole: [
binary_c_objects,
......@@ -958,6 +962,9 @@ binary_c_shared_library = shared_library(
libs,
'-fvisibility=hidden',
],
link_with: [
binary_c_objects
],
)
############################################################
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment