diff --git a/NR_NOTES b/NR_NOTES index abd7f8d..44972e0 100644 --- a/NR_NOTES +++ b/NR_NOTES @@ -1 +1,6 @@ -get python to build without GNU-compatible grep? +-get everything under core/ to build statically? + -anything that relies on libz is an issue, it seems + -binutils is an issue + -so is eudev + -flex diff --git a/NR_README b/NR_README index 32edeb7..17fdbc7 100644 --- a/NR_README +++ b/NR_README @@ -68,6 +68,10 @@ microarchitecture using the following CFLAGS (assuming GCC): -Wl,--hash-style=gnu -Wl,-pie Linker arguments + -fno-lto + Prevent LTO. You can discard this if and only if you are not using + a statically-linked gold or bfd as your primary linker. + A new subdir, bin, containing binaries built with the above CFLAGS (sans native) will be added in the future. I, however, encourage you to build from source if possible. diff --git a/ports/official/core/axel/build b/ports/official/core/axel/build index afc5f0d..b5da4c1 100755 --- a/ports/official/core/axel/build +++ b/ports/official/core/axel/build @@ -1,5 +1,7 @@ #!/bin/sh -e +CFLAGS="$CFLAGS -static " + ./configure \ --prefix=/usr \ --disable-nls \ diff --git a/ports/official/core/binutils/build b/ports/official/core/binutils/build index aa11a5a..84e50f5 100755 --- a/ports/official/core/binutils/build +++ b/ports/official/core/binutils/build @@ -1,5 +1,8 @@ #!/bin/sh -e +CFLAGS="$CFLAGS -static -fPIC" +LDFLAGS="$LDFLAGS -static -fPIC -fno-lto -fno-use-linker-plugin -static -fPIC" + cat > makeinfo <