diff --git a/.gitlab/build-profiler.sh b/.gitlab/build-profiler.sh index c4182c4881..1d3c838467 100755 --- a/.gitlab/build-profiler.sh +++ b/.gitlab/build-profiler.sh @@ -43,8 +43,8 @@ echo "${CARGO_TARGET_DIR}" if [ "$thread_safety" = "zts" ]; then touch build.rs # Ensure build.rs executes after switch-php for ZTS fi -cargo build --profile profiler-release +RUSTFLAGS="-L native=$(dirname "$(gcc -print-file-name=libssp_nonshared.a)")" RUSTC_BOOTSTRAP=1 cargo build -Zbuild-std=std,panic_abort --target "${TRIPLET:?}" --profile profiler-release cd - -cp -v "${CARGO_TARGET_DIR}/profiler-release/libdatadog_php_profiling.so" "${output_file}" +cp -v "${CARGO_TARGET_DIR}/${TRIPLET}/profiler-release/libdatadog_php_profiling.so" "${output_file}" objcopy --compress-debug-sections "${output_file}"