'What does `-B` linker switch do?
I see a few in this makefile. eg:
$(CC32) -B./obj32 $(LDFLAGS) $(LDFLAGS32) -o $@ $(LDLIBS) -Wl,--hugetlbfs-align $(filter %.o,$^)
What does this -B mean?
Solution 1:[1]
That is not a linker switch. If it were a linker switch specifically it would be prefixed with -Wl, telling the GCC front-end to pass that option through to the linker.
The -B option is for the GCC front-end, and you can learn about its options here: https://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html
Index of options here: https://gcc.gnu.org/onlinedocs/gcc/Option-Index.html
The -B option here: https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#index-B
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MadScientist |
