mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
build: handle systems where libc++ is default
ld: error: unable to find library -lstdc++fs ld: error: unable to find library -lc++abi
This commit is contained in:
@@ -17,11 +17,13 @@ cpp_link_args = []
|
|||||||
if get_option('libcxx')
|
if get_option('libcxx')
|
||||||
cpp_args += ['-stdlib=libc++']
|
cpp_args += ['-stdlib=libc++']
|
||||||
cpp_link_args += ['-stdlib=libc++', '-lc++abi']
|
cpp_link_args += ['-stdlib=libc++', '-lc++abi']
|
||||||
|
endif
|
||||||
|
|
||||||
if compiler.has_link_argument('-lc++fs')
|
if compiler.has_link_argument('-lc++fs')
|
||||||
cpp_link_args += ['-lc++fs']
|
cpp_link_args += ['-lc++fs']
|
||||||
endif
|
elif compiler.has_link_argument('-lc++experimental')
|
||||||
else
|
cpp_link_args += ['-lc++experimental']
|
||||||
|
elif compiler.has_link_argument('-lstdc++fs')
|
||||||
cpp_link_args += ['-lstdc++fs']
|
cpp_link_args += ['-lstdc++fs']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user