Merge pull request #12408 from lab47/b-linux-path

Do not pass -Wl,-headerpad_max_install_names on linux
This commit is contained in:
Carlo Cabrera 2021-11-10 16:43:15 +08:00 committed by GitHub
commit ac6196c721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,6 @@ module Stdenv
# Os is the default Apple uses for all its stuff so let's trust them
define_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
append "LDFLAGS", "-Wl,-headerpad_max_install_names"
send(compiler)
return unless cc&.match?(GNU_GCC_REGEXP)

View File

@ -16,6 +16,8 @@ module Stdenv
bottle_arch: bottle_arch, testing_formula: testing_formula
)
append "LDFLAGS", "-Wl,-headerpad_max_install_names"
# sed is strict, and errors out when it encounters files with
# mixed character sets
delete("LC_ALL")