mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
libcamera: Use dependency instead of link_args to link against libdl
Instead of specifying the link arguments directly, which may be compiler-specific, use a dependency object provided by find_library(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Tested-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
5733879864
commit
a87c63c7e9
1 changed files with 6 additions and 2 deletions
|
@ -63,12 +63,16 @@ if libudev.found()
|
||||||
])
|
])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libcamera_deps = [
|
||||||
|
cc.find_library('dl'),
|
||||||
|
libudev,
|
||||||
|
]
|
||||||
|
|
||||||
libcamera = shared_library('camera',
|
libcamera = shared_library('camera',
|
||||||
libcamera_sources,
|
libcamera_sources,
|
||||||
install : true,
|
install : true,
|
||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
dependencies : libudev,
|
dependencies : libcamera_deps)
|
||||||
link_args : '-ldl')
|
|
||||||
|
|
||||||
libcamera_dep = declare_dependency(sources : [libcamera_api, libcamera_h],
|
libcamera_dep = declare_dependency(sources : [libcamera_api, libcamera_h],
|
||||||
include_directories : libcamera_includes,
|
include_directories : libcamera_includes,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue