Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/hab/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ do_prepare() {
# variables.
export PROTOC="$(pkg_path_for protobuf)/bin/protoc"
export PROTOC_INCLUDE="$(pkg_path_for protobuf)/include"

# rust 1.46.0 enabled Position Independent Executables(PIE) for x86_64-unknown-linux-musl.
# This causes the compiled binary to segfault when building with GCC versions that
# support it. While we should investigate if there is something in the way we compile
# GCC which causes this. Setting relocation-model to static suppresses PIE.
export RUSTFLAGS='-C relocation-model=static'
}

do_build() {
Expand Down
6 changes: 6 additions & 0 deletions components/pkg-export-container/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ do_prepare() {
# better refactoring may be called for.
export PROTOC="$(pkg_path_for protobuf)/bin/protoc"
export PROTOC_INCLUDE="$(pkg_path_for protobuf)/include"

# rust 1.46.0 enabled Position Independent Executables(PIE) for x86_64-unknown-linux-musl.
# This causes the compiled binary to segfault when building with GCC versions that
# support it. While we should investigate if there is something in the way we compile
# GCC which causes this. Setting relocation-model to static suppresses PIE.
export RUSTFLAGS='-C relocation-model=static'
}

do_build() {
Expand Down
6 changes: 6 additions & 0 deletions components/pkg-export-tar/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ do_prepare() {
PLAN_TAR_PKG_IDENT=$(pkg_path_for tar | sed "s,^$HAB_PKG_PATH/,,")
export PLAN_TAR_PKG_IDENT
build_line "Setting PLAN_TAR_PKG_IDENT=$PLAN_TAR_PKG_IDENT"

# rust 1.46.0 enabled Position Independent Executables(PIE) for x86_64-unknown-linux-musl.
# This causes the compiled binary to segfault when building with GCC versions that
# support it. While we should investigate if there is something in the way we compile
# GCC which causes this. Setting relocation-model to static suppresses PIE.
export RUSTFLAGS='-C relocation-model=static'
}

do_build() {
Expand Down
6 changes: 6 additions & 0 deletions components/sup/static/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ do_prepare() {
# package proper--it won't find its way into the final binaries.
export LD_LIBRARY_PATH=$(pkg_path_for gcc)/lib
build_line "Setting LD_LIBRARY_PATH=$LD_LIBRARY_PATH"

# rust 1.46.0 enabled Position Independent Executables(PIE) for x86_64-unknown-linux-musl.
# This causes the compiled binary to segfault when building with GCC versions that
# support it. While we should investigate if there is something in the way we compile
# GCC which causes this. Setting relocation-model to static suppresses PIE.
export RUSTFLAGS='-C relocation-model=static'
}