Skip to content

Commit

Permalink
add aws-s3 static library
Browse files Browse the repository at this point in the history
  • Loading branch information
shifangdan.sfd authored and ob-robot-pre committed Jul 5, 2024
1 parent f02fb4b commit fa5b0c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpm/devdeps-s3-cpp-sdk-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi

# depends on cmake(suggest 3.13.0 or higher)
cd $ROOT_DIR
wget http://yum-test.obvos.alibaba-inc.com/oceanbase/OceanBaseTest.repo -P /etc/yum.repos.d/
wget http://mirrors.aliyun.com/oceanbase/OceanBase.repo -P /etc/yum.repos.d/
yum install obdevtools-cmake-3.22.1 -y
yum install zlib -y
yum install zlib-devel -y
Expand Down
3 changes: 2 additions & 1 deletion rpm/devdeps-s3-cpp-sdk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ cd %{_src}
sh prefetch_crt_dependency.sh
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=%{_openssl_path} \
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENSSL_ROOT_DIR=%{_openssl_path} \
-DCURL_INCLUDE_DIR=%{_curl_path}/include -DCURL_LIBRARY=%{_curl_path}/lib/libcurl.a \
-DCMAKE_INSTALL_PREFIX=%{_tmpdir} -DCMAKE_PREFIX_PATH=%{_openssl_path} \
-DBUILD_ONLY="s3" -DBUILD_SHARED_LIBS=0 -DENABLE_TESTING=0 \
-DCUSTOM_MEMORY_MANAGEMENT=1 -DAWS_CUSTOM_MEMORY_MANAGEMENT=1
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -LA | grep CMAKE_CXX_FLAGS_RELWITHDEBINFO
make %{_smp_mflags}
make install

Expand Down

0 comments on commit fa5b0c2

Please sign in to comment.