Skip to content

Commit

Permalink
Explicitly link stdc++fs for std::filesystem
Browse files Browse the repository at this point in the history
Bringing this over from buildroot-meshtastic
  • Loading branch information
vidplace7 authored and caveman99 committed Nov 7, 2024
1 parent 5419502 commit 2adb56c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/portduino/portduino.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ build_flags =
-Isrc/platform/portduino
-DRADIOLIB_EEPROM_UNSUPPORTED
-DPORTDUINO_LINUX_HARDWARE
-lstdc++fs
-lbluetooth
-lgpiod
-lyaml-cpp
3 changes: 2 additions & 1 deletion variants/portduino/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
extends = portduino_base
; The pkg-config commands below optionally add link flags.
; the || : is just a "or run the null command" to avoid returning an error code
build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino -I /usr/include
build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino
-I /usr/include
!pkg-config --libs libulfius --silence-errors || :
!pkg-config --libs openssl --silence-errors || :
board = cross_platform
Expand Down

0 comments on commit 2adb56c

Please sign in to comment.