Skip to content

Commit

Permalink
fix: add additional flag
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Aug 30, 2024
1 parent cf0f9e0 commit e37a1f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ $(STATLIB):
export CARGO_BUILD_JOBS=2; \
fi && \
export PATH="$(PATH):$(HOME)/.cargo/bin" && \
# -z noexecstack added to avoid following error on Ubuntu:
# /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /usr/local/lib/R/site-library/polars/libs/polars.so)`
#
# https://stackoverflow.com/questions/73435637/how-can-i-fix-usr-bin-ld-warning-trap-o-missing-note-gnu-stack-section-imp/73468271#73468271
cargo build --lib --manifest-path="$(CURDIR)/rust/Cargo.toml" --target-dir "$(TARGET_DIR)" --target="$(TARGET)" \
--profile="$(LIBR_POLARS_PROFILE)" --features="$(LIBR_POLARS_FEATURES)"
--profile="$(LIBR_POLARS_PROFILE)" --features="$(LIBR_POLARS_FEATURES)" -z noexecstack

if [ "true" != "true" ]; then \
rm -Rf "$(CARGOTMP)" "$(LIBDIR)/build"; \
Expand Down

0 comments on commit e37a1f0

Please sign in to comment.