Skip to content

Commit 4ded932

Browse files
authored
Update README.md: ppc linking again
fixes #30
1 parent 7cbc10f commit 4ded932

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,24 @@ Here are the latest versions of Xcode that are known to /run/ on each OS X versi
8989

9090
More information about the compilers included in each version of Xcode can be found on the [MacPorts Wiki](https://trac.macports.org/wiki/XcodeVersionInfo).
9191

92-
### Linking on Xcode 7.3 and later
92+
### Linking for ppc on Xcode 7.3 and later
9393

9494
The following error may appear when linking a program using the older compilers from Xcode (command-line and Makefile-based builds should not be affected):
9595
```
9696
Running ld for ppc ...
97+
ld: unknown option: -object_path_lto
98+
```
99+
or
100+
```
101+
Running ld for ppc ...
97102
ld: unknown option: -no_deduplicate
98103
```
99-
The reason is that the newer versions of the linker introduced the option `-no_deduplicate`, which Xcode adds by default. To disable this, add a User-Defined build setting in Xcode named `LD_DONT_RUN_DEDUPLICATION` and set its value to `NO`.
104+
The reason is that the newer versions of the linker introduced the options `-object_path_lto` and `-no_deduplicate`, which Xcode adds by default. To disable this, add the following two User-Defined build setting in Xcode (by clicking on the `+` at the to of the right column in the Build Settings panel):
105+
106+
- `LD_LTO_OBJECT_FILE` with an empty value
107+
- `LD_DONT_RUN_DEDUPLICATION` with value set to `NO`.
108+
109+
For future reference, other settings that control the link options are located in: `/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/Ld.xcspec`
100110

101111
Known bugs (and fixes) in OS X SDKs
102112
-----------------------------------

0 commit comments

Comments
 (0)