From b0e4cb224da6af0062b98c22958d878cc409540a Mon Sep 17 00:00:00 2001 From: Ken Zangelin Date: Thu, 22 Jun 2023 12:31:18 +0200 Subject: [PATCH] Made Orion-LD copile in Ubuntu 22.04 (debug) --- CMakeLists.txt | 1 + src/app/orionld/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c0bcdc13b..fa986db3af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,7 @@ add_definitions(-DORIONLD) add_definitions(-fPIC) add_definitions(-std=c++11) +add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY) # Baseline compiler flags, any change here will affect all build types diff --git a/src/app/orionld/CMakeLists.txt b/src/app/orionld/CMakeLists.txt index 2a00d6b901..d38a829fcf 100644 --- a/src/app/orionld/CMakeLists.txt +++ b/src/app/orionld/CMakeLists.txt @@ -79,6 +79,8 @@ ELSEIF(${DISTRO} STREQUAL "openSUSE_13.1") TARGET_LINK_LIBRARIES(orionld ${STATIC_LIBS} ${BOOST_MT} ${DYNAMIC_LIBS}) ELSEIF(${DISTRO} STREQUAL "Fedora_20") TARGET_LINK_LIBRARIES(orionld ${STATIC_LIBS} ${BOOST} ${DYNAMIC_LIBS}) +ELSEIF(${DISTRO} STREQUAL "Ubuntu_22.04.2_LTS") + TARGET_LINK_LIBRARIES(orionld ${STATIC_LIBS} ${BOOST} ${DYNAMIC_LIBS}) # Finally this is a "best effort" option to try to build on distros that don't have a # specify switch