mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Welcome: Pass -m to ld to fix building with clang/lld
This commit is contained in:
parent
c33cb8a289
commit
b4568b1422
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ LIB_DEPS = GUI Draw IPC Core
|
||||||
|
|
||||||
.SUFFIXES: .png
|
.SUFFIXES: .png
|
||||||
%.png.o: %.png
|
%.png.o: %.png
|
||||||
@echo "LINK $<"; $(LINK) --relocatable --format binary --output $@ $<
|
@echo "LINK $<"
|
||||||
|
$(QUIET) $(LINK) --relocatable --format binary -m elf_$(ARCH) --output $@ $<
|
||||||
|
|
||||||
include ../../Makefile.common
|
include ../../Makefile.common
|
||||||
|
|
|
@ -40,6 +40,7 @@ ifneq ($(USE_HOST_CXX),)
|
||||||
AS = as
|
AS = as
|
||||||
LINK = ld
|
LINK = ld
|
||||||
OBJ_SUFFIX ?= .host
|
OBJ_SUFFIX ?= .host
|
||||||
|
ARCH = $(shell arch -s)
|
||||||
else
|
else
|
||||||
TOOLCHAIN_PATH = $(SERENITY_BASE_DIR)/Toolchain/Local/bin
|
TOOLCHAIN_PATH = $(SERENITY_BASE_DIR)/Toolchain/Local/bin
|
||||||
CXX = $(PRE_CXX) $(TOOLCHAIN_PATH)/i686-pc-serenity-g++
|
CXX = $(PRE_CXX) $(TOOLCHAIN_PATH)/i686-pc-serenity-g++
|
||||||
|
@ -48,6 +49,7 @@ else
|
||||||
LINK = $(TOOLCHAIN_PATH)/i686-pc-serenity-ld
|
LINK = $(TOOLCHAIN_PATH)/i686-pc-serenity-ld
|
||||||
RANLIB = $(TOOLCHAIN_PATH)/i686-pc-serenity-ranlib
|
RANLIB = $(TOOLCHAIN_PATH)/i686-pc-serenity-ranlib
|
||||||
AR = $(TOOLCHAIN_PATH)/i686-pc-serenity-ar
|
AR = $(TOOLCHAIN_PATH)/i686-pc-serenity-ar
|
||||||
|
ARCH = i386
|
||||||
|
|
||||||
DEFINES += -DDEBUG
|
DEFINES += -DDEBUG
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue