forked from mirrors/nixpkgs
pkgsStatic.gcc: fix build
LTO requires building a compiler plugin, which is a shared object. The closure is a bit wild but it builds and can compile programs.
This commit is contained in:
parent
5dbd4b2b27
commit
cb040db7ab
|
@ -14,7 +14,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, flex
|
, flex
|
||||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# we can't rebuild those without also rebuilding the compiler itself,
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
# we opt to always build everything unlike our usual policy.
|
# we opt to always build everything unlike our usual policy.
|
||||||
enableShared ? true
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? !stdenv.hostPlatform.isStatic
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
, gmp, mpfr, libmpc, gettext, which, patchelf
|
, gmp, mpfr, libmpc, gettext, which, patchelf
|
||||||
|
|
Loading…
Reference in a new issue