Skip to content

Commit

Permalink
ghc: if PIE then enable -fPIC even in static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Nov 15, 2018
1 parent c2c6f8a commit 0caf0a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/compilers/ghc/8.2.2.nix
Expand Up @@ -19,6 +19,8 @@

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
# anything w/PIE on by default, for now just musl to limit rebuilds
|| stdenv.hostPlatform.isMusl

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/ghc/8.4.4.nix
Expand Up @@ -18,6 +18,8 @@

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
# anything w/PIE on by default, for now just musl to limit rebuilds
|| stdenv.hostPlatform.isMusl

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/ghc/8.6.1.nix
Expand Up @@ -18,6 +18,8 @@

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
# anything w/PIE on by default, for now just musl to limit rebuilds
|| stdenv.hostPlatform.isMusl

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/ghc/8.6.2.nix
Expand Up @@ -18,6 +18,8 @@

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
# anything w/PIE on by default, for now just musl to limit rebuilds
|| stdenv.hostPlatform.isMusl

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/ghc/head.nix
Expand Up @@ -18,6 +18,8 @@

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
# anything w/PIE on by default, for now just musl to limit rebuilds
|| stdenv.hostPlatform.isMusl

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
Expand Down

0 comments on commit 0caf0a3

Please sign in to comment.