androidndk-pkgs: Fix cc-wrapper flags
(cherry picked from commit 5f4bf240f51124ffa19a5fa0ac48bf144768d9ff)
This commit is contained in:
parent
11a6d01db6
commit
f2bb67c806
1 changed files with 1 additions and 2 deletions
|
@ -100,8 +100,7 @@ rec {
|
|||
$out/bin/${stdenv.targetPlatform.config}-c++ \
|
||||
$out/bin/${stdenv.targetPlatform.config}-gcc \
|
||||
$out/bin/${stdenv.targetPlatform.config}-g++ \
|
||||
-e '130i extraBefore+=(-Wl,--fix-cortex-a8)' \
|
||||
-e 's|^(extraBefore=)\(\)$|\1(${builtins.toString flags})|'
|
||||
-e 's|^(extraBefore=)\((.*)\)$|\1(\2 -Wl,--fix-cortex-a8 ${builtins.toString flags})|'
|
||||
'')
|
||||
# GCC 4.9 is the first relase with "-fstack-protector"
|
||||
+ lib.optionalString (lib.versionOlder targetInfo.gccVer "4.9") ''
|
||||
|
|
Loading…
Reference in a new issue