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.
This commit is contained in:
parent
7cf3cd3434
commit
038e86ffbb
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue