Skip to content

Commit

Permalink
include static gsl
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 12, 2023
1 parent d307e2e commit 4b34878
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-compile-portable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: ton-binaries-${{ matrix.os }}
name: ton-binaries-linux-x86-64
path: artifacts
4 changes: 3 additions & 1 deletion assembly/native/build-ubuntu-20.04-portable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ cmake -GNinja .. \
-DSODIUM_LIBRARY_RELEASE=$sodiumPath/src/libsodium/.libs/libsodium.a \
-DMHD_FOUND=1 \
-DMHD_INCLUDE_DIR=$libmicrohttpdPath/src/include \
-DMHD_LIBRARY=$libmicrohttpdPath/src/microhttpd/.libs/libmicrohttpd.a
-DMHD_LIBRARY=$libmicrohttpdPath/src/microhttpd/.libs/libmicrohttpd.a \
-DCMAKE_CXX_FLAGS="-fPIC -static"


test $? -eq 0 || { echo "Can't configure ton"; exit 1; }

Expand Down
1 change: 1 addition & 0 deletions emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ add_library(emulator_static STATIC ${EMULATOR_STATIC_SOURCE})
target_link_libraries(emulator_static PUBLIC ton_crypto ton_block smc-envelope)

if (NOT USE_EMSCRIPTEN AND BUILD_SHARED_LIBS)
set(CMAKE_CXX_FLAGS "")
add_library(emulator SHARED ${EMULATOR_SOURCE} ${EMULATOR_HEADERS})
else()
add_library(emulator STATIC ${EMULATOR_SOURCE} ${EMULATOR_HEADERS})
Expand Down
1 change: 1 addition & 0 deletions tonlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ set(TONLIB_JSON_SOURCE tonlib/tonlib_client_json.cpp)

include(GenerateExportHeader)
if (NOT USE_EMSCRIPTEN AND BUILD_SHARED_LIBS)
set(CMAKE_CXX_FLAGS "")
add_library(tonlibjson SHARED ${TONLIB_JSON_SOURCE} ${TONLIB_JSON_HEADERS})
else()
add_library(tonlibjson STATIC ${TONLIB_JSON_SOURCE} ${TONLIB_JSON_HEADERS})
Expand Down

0 comments on commit 4b34878

Please sign in to comment.