Other Linker Flags list
Asked Answered
S

1

11

Is there a list of all flags that can be put into the Other Linker Flags field of the Xcode Build Settings?

I've searched the developer documentation without results.

Springclean answered 24/1, 2013 at 9:26 Comment(0)
N
21

Well a definitive list of all the flags supported by ld is available in the ld manpage, and I guess you'd have to ignore the flags that are properly supported by Xcode in order to get your list.

You can, of course, access the manpage from your Mac by firing up Terminal and typing:

$ man ld

It's also probably available from with the Xcode Documentation window.

Narrow answered 24/1, 2013 at 9:35 Comment(5)
Also, if you want to pass any of these via OTHER_LDFLAGS or "Other Linker Flags", you have to prefix with -Wl, so for example, if you want to specify -t, you have to do "-Wl,-t"Marchak
@Marchak Oh my, thanks for pointing that! I couldn't figure out why options listed in man doesn't want to work! Can you point to some place in documentation where this is explained?Cementite
@Cementite Does this help?Marchak
The link in your answer is dead :-(Permalloy
-filelist file[,dirname] Specifies that the linker should link the files listed in file. This is an alternative to listing the files on the command line. The file names are listed one per line separated only by newlines. (Spaces and tabs are assumed to be part of the file name.) If the optional directory name, dirname is specified, it is prepended to each name in the list file.Hartmann

© 2022 - 2024 — McMap. All rights reserved.