Skip to content

Commit

Permalink
Welcome: Pass -m to ld to fix building with clang/lld
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs authored and awesomekling committed Feb 5, 2020
1 parent c33cb8a commit b4568b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Applications/Welcome/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LIB_DEPS = GUI Draw IPC Core

.SUFFIXES: .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
2 changes: 2 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ifneq ($(USE_HOST_CXX),)
AS = as
LINK = ld
OBJ_SUFFIX ?= .host
ARCH = $(shell arch -s)
else
TOOLCHAIN_PATH = $(SERENITY_BASE_DIR)/Toolchain/Local/bin
CXX = $(PRE_CXX) $(TOOLCHAIN_PATH)/i686-pc-serenity-g++
Expand All @@ -48,6 +49,7 @@ else
LINK = $(TOOLCHAIN_PATH)/i686-pc-serenity-ld
RANLIB = $(TOOLCHAIN_PATH)/i686-pc-serenity-ranlib
AR = $(TOOLCHAIN_PATH)/i686-pc-serenity-ar
ARCH = i386

DEFINES += -DDEBUG

Expand Down

0 comments on commit b4568b1

Please sign in to comment.