BootRules: BuildMBR links as well as compiles, so pass in LINKFLAGS.

Clang builds presently have some magic in it that is required for
linking to work at all.
This commit is contained in:
Augustin Cavalier 2018-11-02 21:41:53 -04:00
parent 95e0ce2c0b
commit 8b4ab45439

View File

@ -216,5 +216,7 @@ rule BuildMBR binary : source
actions BuildMBR
{
$(RM) $(1)
$(HAIKU_CC_$(HAIKU_PACKAGING_ARCH)) $(2) -o $(1) $(MBRFLAGS) -nostdlib -Xlinker --oformat=binary -Xlinker -S -Xlinker -N -Xlinker --entry=start -Xlinker -Ttext=0x600
$(HAIKU_CC_$(HAIKU_PACKAGING_ARCH)) $(HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH)) \
$(2) -o $(1) $(MBRFLAGS) -nostdlib -Xlinker --oformat=binary \
-Xlinker -S -Xlinker -N -Xlinker --entry=start -Xlinker -Ttext=0x600
}