From 1b0784cca354d3abcaf40d7020f4a3eb6d2b14f5 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 31 May 2012 15:27:46 +0000 Subject: [PATCH] Mac: Add headerpad_max_install_names linker setting to all projects that rewrite framework links. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@659 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cef.gyp b/cef.gyp index 35f5432d3..a1db7b114 100644 --- a/cef.gyp +++ b/cef.gyp @@ -263,6 +263,9 @@ ], 'xcode_settings': { 'INFOPLIST_FILE': 'tests/unittests/mac/Info.plist', + # Necessary to avoid an "install_name_tool: changing install names or + # rpaths can't be redone" error. + 'OTHER_LDFLAGS': ['-Wl,-headerpad_max_install_names'], }, 'include_dirs': [ '.', @@ -988,6 +991,9 @@ ], 'xcode_settings': { 'INFOPLIST_FILE': 'tests/cefclient/mac/helper-Info.plist', + # Necessary to avoid an "install_name_tool: changing install names or + # rpaths can't be redone" error. + 'OTHER_LDFLAGS': ['-Wl,-headerpad_max_install_names'], }, 'postbuilds': [ { @@ -1073,6 +1079,9 @@ ], 'xcode_settings': { 'INFOPLIST_FILE': 'tests/cefclient/mac/helper-Info.plist', + # Necessary to avoid an "install_name_tool: changing install names or + # rpaths can't be redone" error. + 'OTHER_LDFLAGS': ['-Wl,-headerpad_max_install_names'], }, 'postbuilds': [ {