Skip to content

Commit

Permalink
pass CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs authored and jameslamb committed Nov 17, 2018
1 parent 8a8376d commit db9ee5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/docker_build_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export ARROW_HOME=$CONDA_PREFIX

# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issues
export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
export PKG_CXXFLAGS=$CXXFLAGS

# Build arrow
pushd /arrow/r
Expand Down
7 changes: 4 additions & 3 deletions r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ ENV DEBIAN_FRONTEND=noninteractive
# Build R
# [1] https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
# [2] https://linuxize.com/post/how-to-install-r-on-ubuntu-18-04/#installing-r-packages-from-cran
RUN apt install -y \
apt-transport-https \
software-properties-common && \
RUN apt update && \
apt install -y \
apt-transport-https \
software-properties-common && \
apt-key adv \
--keyserver keyserver.ubuntu.com \
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \
Expand Down
2 changes: 1 addition & 1 deletion r/src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# under the License.

PKG_CPPFLAGS=@cflags@
PKG_CXXFLAGS=$(C_VISIBILITY)
PKG_CXXFLAGS+=$(C_VISIBILITY)
CXX_STD=CXX11
PKG_LIBS=@libs@ -Wl,-rpath,/usr/local/lib

0 comments on commit db9ee5b

Please sign in to comment.