From 6f82864895dd1ecbc633b1ecd97376c9d28555b9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 11 May 2013 17:16:56 -0400 Subject: Add ELF INTERP notes to core- bootstrap page. --- (limited to 'dev/ports') diff --git a/dev/ports/core-linux-eglibc/bootstrap.mdwn b/dev/ports/core-linux-eglibc/bootstrap.mdwn index a9d0171..6f21ee3 100644 --- a/dev/ports/core-linux-eglibc/bootstrap.mdwn +++ b/dev/ports/core-linux-eglibc/bootstrap.mdwn @@ -72,6 +72,13 @@ when it executes the stage 1 binaries. $ mkdir bootstrap_core-linux-eglibc/lib64 $ ln -sf /lib/core-linux-eglibc/ld-linux-x86-64.so.2 bootstrap_core-linux-eglibc/lib64/ld-linux-x86-64.so.2 +For most packages, this can be made unnecessary using GNU ld's +`--dynamic-linker` option, e.g. by setting `LDFLAGS` to +`-Wl,--dynamic-linker=/lib/core-linux-eglibc/ld-linux-x86-64.so.2`. Doing this +when building GCC, however, makes executables like `gcc`, `cpp`, and `cc1` +declare superfluous ELF NEEDED dependencies on `libstdc++.so.6` and +`libgcc_s.so.1`. + [opkbuild-3.0.0-alpha4]: http://files.proteanos.com/pub/opkbuild/3.0.0-alpha4/ [opkhelper-3.0.0-beta2]: http://lists.proteanos.com/proteanos-dev/2013/05/msg00001.html @@ -167,7 +174,7 @@ Building and Installing GNU Make Run the following commands in a copy of the `gmake` source package to build GNU Make for the bootstrap system. - $ LDFLAGS='-Wl,--dynamic-linker=/lib/core-linux-eglibc/ld-linux-x86-64.so.2' opkbuild -b -c + $ opkbuild -b -c Run the following commands in the bootstrap system directory to unpack the `gmake` package: -- cgit v0.9.1