Skip to content

Commit

Permalink
Fix nimble install on Fedora Linux (#78)
Browse files Browse the repository at this point in the history
* Copy build directory during nimble install.

* Make VCPKG_CRT_LINKAGE dynamic.
  • Loading branch information
bhartnett authored Jan 3, 2025
1 parent afc8339 commit d146f4a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions rocksdb.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description =
license = "Apache License 2.0 or GPLv2"
skipDirs = @["examples", "tests"]
mode = ScriptMode.Verbose
installDirs = @["build"]

### Dependencies
requires "nim >= 2.0", "results", "tempfile", "unittest2"
Expand Down
1 change: 0 additions & 1 deletion scripts/build_shared_deps_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ cd "$(dirname "${BASH_SOURCE[0]}")"/..
REPO_DIR="${PWD}"
BUILD_DEST="${REPO_DIR}/build/"


git submodule update --init

${REPO_DIR}/vendor/vcpkg/bootstrap-vcpkg.sh -disableMetrics
Expand Down
1 change: 0 additions & 1 deletion scripts/build_shared_deps_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ cd "$(dirname "${BASH_SOURCE[0]}")"/..
REPO_DIR="${PWD}"
BUILD_DEST="${REPO_DIR}/build/"


git submodule update --init

${REPO_DIR}/vendor/vcpkg/bootstrap-vcpkg.sh -disableMetrics
Expand Down
2 changes: 1 addition & 1 deletion triplets/x64-linux-rocksdb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_FIXUP_ELF_RPATH ON)

if(${PORT} MATCHES "snappy|zlib|lz4|zstd")
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
else()
set(VCPKG_CRT_LINKAGE dynamic)
Expand Down
2 changes: 1 addition & 1 deletion triplets/x64-osx-rocksdb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)

if(${PORT} MATCHES "snappy|zlib|lz4|zstd")
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
else()
set(VCPKG_CRT_LINKAGE dynamic)
Expand Down

0 comments on commit d146f4a

Please sign in to comment.