Skip to content

Commit fa392e3

Browse files
committed
set rpath in GDAL binary to $ORIGIN
1 parent 0232b04 commit fa392e3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ENV \
3434
NPROC=4 \
3535
PREFIX=/usr/local \
3636
GDAL_CONFIG=/usr/local/bin/gdal-config \
37-
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 \
37+
LD_LIBRARY_PATH=/usr/local/lib \
3838
GDAL_DATA=/usr/local/share/gdal
3939

4040
# switch to a build directory
@@ -182,12 +182,14 @@ RUN \
182182
--with-threads=yes \
183183
--with-curl=${PREFIX}/bin/curl-config \
184184
--without-python \
185+
--without-libtool \
185186
--with-geos=$PREFIX/bin/geos-config \
186187
--with-hide-internal-symbols=yes \
187-
CFLAGS="-O2 -Os" CXXFLAGS="-O2 -Os -Wl,-rpath=$ORIGIN"; \
188+
CFLAGS="-O2 -Os" CXXFLAGS="-O2 -Os" \
189+
LDFLAGS="-Wl,-rpath,'\$\$ORIGIN'"; \
188190
make -j ${NPROC} install; \
189191
cd ${BUILD}; rm -rf gdal
190-
192+
#
191193
# Copy shell scripts and config files over
192194
COPY bin/* /usr/local/bin/
193195

python/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
ARG VERSION=latest
22
FROM developmentseed/geolambda:${VERSION}
33

4-
LABEL maintainer="Matthew Hanson <matt.a.hanson@gmail.com>"
4+
LABEL maintainer="Development Seed <info@developmentseed.org>"
5+
LABEL authors="Matthew Hanson <matt.a.hanson@gmail.com>"
56

67
ARG PYVERSION=3.6.1
78

0 commit comments

Comments
 (0)