Commit 0b6c1741 authored by gsell's avatar gsell
Browse files

240-build-mithra: build position independent code

parent 1995303c
......@@ -26,6 +26,8 @@ mkdir -p "${OTB_SRC_DIR}/$P/build" && cd "$_" || exit ${OTB_ERR_SYSTEM}
cmake \
-DCMAKE_INSTALL_PREFIX="${OTB_PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_C_FLAGS_INIT="-fPIC" \
-DCMAKE_CXX_FLAGS_INIT="-fPIC" \
"${OTB_SRC_DIR}/$P/$P-release-$V" || exit ${OTB_ERR_CONFIGURE}
# compile and install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment