mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
makefile-engine: fix for riscv64
Change-Id: I85c18ce812db65606ef6aba64f81b80872618263 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4317 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
35a88355ad
commit
ef240bfffa
@ -144,30 +144,21 @@ VPATH :=
|
|||||||
VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
|
VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
|
||||||
|
|
||||||
# Set up the local & system include paths and C++ stdlibs.
|
# Set up the local & system include paths and C++ stdlibs.
|
||||||
ifneq (,$(filter $(CPU),x86 x86_64))
|
LOC_INCLUDES = $(foreach path, $(SRC_PATHS) $(LOCAL_INCLUDE_PATHS), $(addprefix -I, $(path)))
|
||||||
LOC_INCLUDES = $(foreach path, $(SRC_PATHS) $(LOCAL_INCLUDE_PATHS), $(addprefix -I, $(path)))
|
ifeq ($(CC_VER), 2)
|
||||||
ifeq ($(CC_VER), 2)
|
|
||||||
INCLUDES = $(LOC_INCLUDES)
|
INCLUDES = $(LOC_INCLUDES)
|
||||||
INCLUDES += -I-
|
INCLUDES += -I-
|
||||||
INCLUDES += $(foreach path, $(SYSTEM_INCLUDE_PATHS), $(addprefix -I, $(path)))
|
INCLUDES += $(foreach path, $(SYSTEM_INCLUDE_PATHS), $(addprefix -I, $(path)))
|
||||||
|
|
||||||
STDCPPLIBS = stdc++.r4
|
STDCPPLIBS = stdc++.r4
|
||||||
else
|
else
|
||||||
INCLUDES = -iquote./
|
INCLUDES = -iquote./
|
||||||
INCLUDES += $(foreach path, $(SRC_PATHS) $(LOCAL_INCLUDE_PATHS), $(addprefix -iquote, $(path)))
|
INCLUDES += $(foreach path, $(SRC_PATHS) $(LOCAL_INCLUDE_PATHS), $(addprefix -iquote, $(path)))
|
||||||
INCLUDES += $(foreach path, $(SYSTEM_INCLUDE_PATHS), $(addprefix -isystem, $(path)))
|
INCLUDES += $(foreach path, $(SYSTEM_INCLUDE_PATHS), $(addprefix -isystem, $(path)))
|
||||||
|
|
||||||
STDCPPLIBS = stdc++ supc++
|
STDCPPLIBS = stdc++ supc++
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
ifeq ($(CPU), ppc)
|
|
||||||
LOC_INCLUDES = $(foreach path, $(SRC_PATHS) $(LOCAL_INCLUDE_PATHS), $(addprefix -I, $(path)))
|
|
||||||
SYS_INCLUDES += -i-
|
|
||||||
SYS_INCLUDES += $(foreach path, $(SYSTEM_INCLUDE_PATHS), $(addprefix -i , $(path)))
|
|
||||||
|
|
||||||
INCLUDES = $(LOC_INCLUDES) $(SYS_INCLUDES)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Add the -L prefix to all of the library paths.
|
# Add the -L prefix to all of the library paths.
|
||||||
LINK_PATHS = $(foreach path, $(SRC_PATHS) $(LIBPATHS), \
|
LINK_PATHS = $(foreach path, $(SRC_PATHS) $(LIBPATHS), \
|
||||||
|
Loading…
Reference in New Issue
Block a user