aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.build (follow)
Commit message (Collapse)AuthorAgeFilesLines
* build system: fix for older GNU makeRon Yorston2024-02-201-3/+9
| | | | | | | | Commit 992387539 (build system: more clang/llvm tweaks) added a test in scripts/Makefile.build which used the intcmp function. This isn't present in GNU make prior to 4.4. Rewrite the test so it works with older versions of GNU make.
* build system: more clang/llvm tweaksRon Yorston2024-01-181-0/+11
| | | | | | | | | | | | | | | | | | Linkers associated with clang/llvm may not support the -r option. This is used to create built-in.o object files. It turns out that all such files in busybox-w32 are either empty or only contain one object file. The first case is already supported and the second can be handled by simply copying the object file to built-in.o. The linker is therefore never invoked with the -r option. One adjustment is required: the workaround adopted for GitHub issue #200 linked the dummy C file with the resource object file. This is no longer done so only one object file is used. Since it was the linking that broke the resource file, copying it is an equally effective fix for the issue. Some old linkers don't support the --warn-common option. The lack of this option was being detected but it was still sometimes used.
* build system: specify '-nostldlib' when linking to .o filesDrew Moseley2014-04-021-1/+2
| | | | | | | | | | | | | | | | | | | For certain cross build scenarios the LD variable is overridden to use the gcc executive to ensure all the target tuning parameters are used. In these cases, the executive errors out as shown below but since this step is only linking to a .o file the standard libs are not needed. $ make LD=gcc applets/built-in.o LD applets/built-in.o /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status make[1]: *** [applets/built-in.o] Error 1 make: *** [applets_dir] Error 2 Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix make O=dir buildDenys Vlasenko2010-07-091-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: add PIE build optionDenis Vlasenko2008-06-041-2/+2
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-2/+2
|
* build system overhaulDenis Vlasenko2006-10-051-0/+338