diff options
author | P. J. McDermott <pehjota> | 2013-05-11 17:16:56 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-11 17:16:56 (EDT) |
commit | 6f82864895dd1ecbc633b1ecd97376c9d28555b9 (patch) | |
tree | 88526c55824e678dc57e18c1155d3f958bc2b5e5 /dev/ports | |
parent | 0e43b57f7e72698dae9e3aacadabf4c60f4554c6 (diff) |
Add ELF INTERP notes to core- bootstrap page.
Diffstat (limited to 'dev/ports')
-rw-r--r-- | dev/ports/core-linux-eglibc/bootstrap.mdwn | 9 |
1 files changed, 8 insertions, 1 deletions
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: |