Make sure bash is built as PIE
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
parent
774ea33d9a
commit
e24a9944e3
@ -13,7 +13,7 @@ git clone -b ${bash_branch} ${bash_source}
|
|||||||
|
|
||||||
echo "Building bash with musl-gcc (occlum-gcc) ..."
|
echo "Building bash with musl-gcc (occlum-gcc) ..."
|
||||||
cd bash
|
cd bash
|
||||||
CC=occlum-gcc CXX=occlum-g++ ./configure --without-bash-malloc
|
CC="occlum-gcc -fPIE -pie" CXX="occlum-g++ -fPIE -pie" ./configure --without-bash-malloc
|
||||||
make clean
|
make clean
|
||||||
make -j
|
make -j
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ git clean -dxf
|
|||||||
git reset HEAD --hard
|
git reset HEAD --hard
|
||||||
|
|
||||||
echo "Building bash with gcc ..."
|
echo "Building bash with gcc ..."
|
||||||
./configure
|
CC="gcc -fPIE -pie" CXX="g++ -fPIE -pie" ./configure
|
||||||
make -j
|
make -j
|
||||||
|
|
||||||
mkdir -p ${INSTALL_DIR}/glibc
|
mkdir -p ${INSTALL_DIR}/glibc
|
||||||
|
Loading…
Reference in New Issue
Block a user