diff options
author | Andreas Fuchs <asf@boinkor.net> | 2020-08-02 16:11:55 -0400 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-11-27 13:28:12 +0000 |
commit | 91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc (patch) | |
tree | f13387c18708aa5d859c5f938013b9fc739e5641 | |
parent | 033649ccbdba51a00e38d8a680263493f6eff23b (diff) | |
download | nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar.gz nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar.bz2 nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar.lz nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar.xz nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.tar.zst nixlib-91a2193e6d7f93c3cdf09dc0cbebff92bcb959dc.zip |
gcc: Fix building libgccjit on darwin, using strip -x
The default `strip` invocation tries to strip global symbols from the library, and refuses because those are indirect symbol table references. (cherry picked from commit 038e86ffbb76bd54b922e68f5514102e36bec96b)
-rw-r--r-- | nixpkgs/pkgs/development/compilers/gcc/common/pre-configure.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/gcc/common/pre-configure.nix b/nixpkgs/pkgs/development/compilers/gcc/common/pre-configure.nix index fff490148007..e4a7cfb4287c 100644 --- a/nixpkgs/pkgs/development/compilers/gcc/common/pre-configure.nix +++ b/nixpkgs/pkgs/development/compilers/gcc/common/pre-configure.nix @@ -49,3 +49,11 @@ lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) '' + lib.optionalString (hostPlatform.isDarwin) '' export ac_cv_func_aligned_alloc=no '' + +# In order to properly install on macOS Catalina, strip(1) upon +# installation must not remove external symbols, otherwise the install +# step errors with "symbols referenced by indirect symbol table +# entries that can't be stripped". ++ lib.optionalString (hostPlatform.isDarwin) '' + export STRIP='strip -x' +'' |