Skip to content

Commit

Permalink
Add URL_MD5 for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Sep 17, 2023
1 parent 00e13e3 commit d279a91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMake/build-from-src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function(build_from_src [dep])
ExternalProject_Add(
aio
URL ${PHOTON_AIO_SOURCE}
URL_MD5 605237f35de238dfacc83bcae406d95d
BUILD_IN_SOURCE ON
CONFIGURE_COMMAND ""
BUILD_COMMAND make prefix=${BINARY_DIR} install -j
Expand All @@ -21,8 +22,9 @@ function(build_from_src [dep])
ExternalProject_Add(
zlib
URL ${PHOTON_ZLIB_SOURCE}
URL_MD5 9b8aa094c4e5765dabf4da391f00d15c
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -ie "/CFLAGS.*CFLAGS--O3/ s/}/} -fPIC/" configure
PATCH_COMMAND sed -i -e "/CFLAGS.*CFLAGS--O3/ s/}/} -fPIC/" configure
CONFIGURE_COMMAND ./configure --prefix=${BINARY_DIR} --static
BUILD_COMMAND make -j
INSTALL_COMMAND make install
Expand All @@ -35,8 +37,9 @@ function(build_from_src [dep])
ExternalProject_Add(
uring
URL ${PHOTON_URING_SOURCE}
URL_MD5 2e8c3c23795415475654346484f5c4b8
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -ie "/L_CFLAGS=$/ s/=/=-fPIC $/" src/Makefile
PATCH_COMMAND sed -i -e "/L_CFLAGS=\$/ s/=/=-fPIC\ /" src/Makefile
CONFIGURE_COMMAND ./configure --prefix=${BINARY_DIR}
BUILD_COMMAND V=1 make -C src
INSTALL_COMMAND make install
Expand All @@ -48,6 +51,7 @@ function(build_from_src [dep])
ExternalProject_Add(
gflags
URL ${PHOTON_GFLAGS_SOURCE}
URL_MD5 1a865b93bacfa963201af3f75b7bd64c
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_POSITION_INDEPENDENT_CODE=ON
INSTALL_COMMAND ""
)
Expand All @@ -59,6 +63,7 @@ function(build_from_src [dep])
ExternalProject_Add(
googletest
URL ${PHOTON_GOOGLETEST_SOURCE}
URL_MD5 e82199374acdfda3f425331028eb4e2a
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DINSTALL_GTEST=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
INSTALL_COMMAND ""
)
Expand Down

0 comments on commit d279a91

Please sign in to comment.