Commit 31389389 authored by Zeeshan Ali's avatar Zeeshan Ali

build: Use 'link-whole' to link static libs

I'm told this is not just the right thing to do but may also fix the build
issue with parallel builds on a massively multicore machines. :)
parent 1ad32747
......@@ -44,7 +44,7 @@ if get_option('demo-agent')
sources,
include_directories: include_dirs,
c_args: c_args,
link_with: [ libgeoclue_agent ],
link_whole: [ libgeoclue_agent ],
dependencies: deps,
install: true,
install_dir: demo_dir)
......
......@@ -42,13 +42,13 @@ libgeoclue_headers += gclue_manager[1]
c_args = [ '-DG_LOG_DOMAIN="Geoclue"', '-Werror' ]
include_dirs = [ libgeoclue_public_api_inc, include_directories('.') ]
link_with = [ libgeoclue_public_api ]
link_whole = [ libgeoclue_public_api ]
libgeoclue = library('geoclue-2',
libgeoclue_sources,
libgeoclue_headers,
include_directories: include_dirs,
dependencies: base_deps,
link_with: link_with,
link_whole: link_whole,
soversion: '0',
version: '0.0.0',
install: true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment