Skip to content

Commit

Permalink
meson.build: fix linker error in uclibc-sparc
Browse files Browse the repository at this point in the history
This PR fixes the problem related to not finding the libatomic during the
build. The problem happens in Builroot, when building libplacebo with
bootlin-sparc-uclibc toolchain.

Fixes:
 - haasn#278

Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
  • Loading branch information
Javad Rahimipetroudi committed Jul 19, 2024
1 parent 1fd3c7b commit 4386f3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ add_project_link_arguments(link_args, language: ['c', 'cpp'])
# Global dependencies
fs = import('fs')
libm = cc.find_library('m', required: false)
atomic = cc.find_library('atomic', required: false)
thirdparty = meson.project_source_root()/'3rdparty'
python = import('python').find_installation()
python_env = environment()
Expand All @@ -473,7 +474,7 @@ else
)
endif

build_deps = [ libm, threads ]
build_deps = [ libm, threads, atomic]

subdir('tools')
subdir('src')
Expand Down

0 comments on commit 4386f3e

Please sign in to comment.