summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-glibc.morph
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2015-03-12 10:20:01 +0000
committerRichard Dale <richard.dale@codethink.co.uk>2015-03-12 14:15:55 +0000
commitc9afefed2d2278046ec5c0fb11c32220f3b7380d (patch)
tree92d75b93d3786c5e8aacac73c1cff6c89d832c08 /strata/build-essential/stage2-glibc.morph
parentd39632c8dd01509ed7e1e7591ca8ef59c707c54f (diff)
downloaddefinitions-c9afefed2d2278046ec5c0fb11c32220f3b7380d.tar.gz
Create /etc/ld.so.conf in glibc chunks, as it is glibc specific
Diffstat (limited to 'strata/build-essential/stage2-glibc.morph')
-rw-r--r--strata/build-essential/stage2-glibc.morph9
1 files changed, 9 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-glibc.morph b/strata/build-essential/stage2-glibc.morph
index ffa0970b..48ceb767 100644
--- a/strata/build-essential/stage2-glibc.morph
+++ b/strata/build-essential/stage2-glibc.morph
@@ -32,6 +32,15 @@ build-commands:
install-commands:
- cd o && make install_root="$DESTDIR" localtime=UTC install
+- mkdir -p "$DESTDIR/etc"
+- |
+ cat <<EOF > ld.so.conf
+ /lib
+ /usr/lib
+ /usr/local/lib
+ include /etc/ld.so.conf.d/*.conf
+ EOF
+- install -m 644 -o root -g root ld.so.conf "$DESTDIR/etc/ld.so.conf"
- sh stage2-glibc-fix-specs
# Install a symlink for the program interpreter (ld.so) so that binaries