summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 6626fa7e..2e7dffb7 100644
--- a/meson.build
+++ b/meson.build
@@ -76,6 +76,14 @@ if cc.get_id() == 'gcc'
error('gcc version is too old, libcamera requires 7.0 or newer')
endif
+ # On gcc 7 and 8, the file system library is provided in a separate static
+ # library.
+ if cc.version().version_compare('<9')
+ cpp_arguments += [
+ '-lstdc++fs',
+ ]
+ endif
+
# gcc 7.1 introduced processor-specific ABI breakages related to parameter
# passing on ARM platforms. This generates a large number of messages
# during compilation with gcc >=7.1. Silence them.