Skip to content

Commit

Permalink
Fix CMake sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Sep 17, 2023
1 parent d279a91 commit a9e5a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMake/build-from-src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function(build_from_src [dep])
URL ${PHOTON_ZLIB_SOURCE}
URL_MD5 9b8aa094c4e5765dabf4da391f00d15c
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -i -e "/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 @@ -39,7 +39,7 @@ function(build_from_src [dep])
URL ${PHOTON_URING_SOURCE}
URL_MD5 2e8c3c23795415475654346484f5c4b8
BUILD_IN_SOURCE ON
PATCH_COMMAND sed -i -e "/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 Down

0 comments on commit a9e5a71

Please sign in to comment.