gcc: Always pass --enable-shared
by default
I am actually a bit skeptical about this, but @matthewbauer makes the case for this in https://github.com/NixOS/nixpkgs/pull/107238#discussion_r546454453 and I'm happy to go with it not being as in the loop on static linking stuff as he is.
This commit is contained in:
parent
f52263ced0
commit
8e48232180
@ -7,7 +7,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
|
@ -7,7 +7,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||||
|
@ -7,7 +7,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, flex
|
, flex
|
||||||
|
@ -6,7 +6,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
|
@ -6,7 +6,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, langJit ? false
|
, langJit ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, enableShared ? !stdenv.targetPlatform.isStatic
|
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||||
|
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||||
|
# platform libraries not host platform ones unlike normal. But since
|
||||||
|
# we can't rebuild those without also rebuilding the compiler itself,
|
||||||
|
# we opt to always build everything unlike our usual policy.
|
||||||
|
enableShared ? true
|
||||||
, enableLTO ? true
|
, enableLTO ? true
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, perl ? null # optional, for texi2pod (then pod2man)
|
, perl ? null # optional, for texi2pod (then pod2man)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user