Skip to content

Commit a5937a0

Browse files
alexezedertianon
authored andcommitted
Fix ldconfig for GCC installs
by moving the GCC installs path config to a higher sorting filename (since /etc/ld.so.conf.d may contain architecture-specific *.conf files and these files are otherwise parsed first because of sorting)
1 parent 9c37e98 commit a5937a0

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

10/Dockerfile

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

11/Dockerfile

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8/Dockerfile

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

9/Dockerfile

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile.template

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ RUN set -ex; \
135135
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
136136
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
137137

138-
# gcc installs .so files in /usr/local/lib64...
138+
# gcc installs .so files in /usr/local/lib64 (and /usr/local/lib)...
139139
RUN set -ex; \
140-
echo '/usr/local/lib64' > /etc/ld.so.conf.d/local-lib64.conf; \
140+
# this filename needs to sort higher than all the architecture filenames ("aarch64-...", "armeabi...", etc)
141+
{ echo '/usr/local/lib64'; echo '/usr/local/lib'; } > /etc/ld.so.conf.d/000-local-lib.conf; \
141142
ldconfig -v
142143

143144
# ensure that alternatives are pointing to the new compiler and that old one is no longer used

0 commit comments

Comments
 (0)