Skip to content
Snippets Groups Projects
Commit 53d10007 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

ENV/std: add LDFLAGS if disabling weak imports.

parent b33fe794
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,11 @@ module Stdenv ...@@ -28,6 +28,11 @@ module Stdenv
# depend on it already being installed to build itself. # depend on it already being installed to build itself.
ld64 if Formula["ld64"].installed? ld64 if Formula["ld64"].installed?
end end
# Xcode 8 should be told to fail to link against weak links
# Issue from Apple engineer:
# https://github.com/Homebrew/homebrew-core/issues/3727
append "LDFLAGS", "-Wl,-no_weak_imports" if no_weak_imports?
end end
def homebrew_extra_pkg_config_paths def homebrew_extra_pkg_config_paths
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment