ENV/std: add LDFLAGS if disabling weak imports.

This commit is contained in:
Mike McQuaid 2016-08-16 13:48:08 +01:00
parent b33fe79478
commit 53d1000739

View File

@ -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