mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs-cpp.mk: Don't add TC_SYS_ROOT/(lib|include) to cross compilations
Code generated for Cortex M3 stopped working after adding -L$(TC_SYS_ROOT)/lib. The problem is that libc et al have to be taken from $(TC_SYS_ROOT)/lib/thumb, which is correctly taken if explicit -L is left out. Probably breaks mingw, to be tested and fixed in the next iteration. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
df6c1ef9a1
commit
f424f2cb5f
1 changed files with 8 additions and 8 deletions
|
|
@ -93,9 +93,9 @@ ifneq ($(TARGET_TRIPLET),$(HOST_TRIPLET)) # we're cross-compiling
|
||||||
MS_LD ?= wine $(HOME)/local/mingw/packages/msvcpp/bin/LIB.EXE
|
MS_LD ?= wine $(HOME)/local/mingw/packages/msvcpp/bin/LIB.EXE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PROJECT_CFLAGS += -I$(TC_SYS_ROOT)/include
|
#PROJECT_CFLAGS += -I$(TC_SYS_ROOT)/include
|
||||||
PROJECT_CPPFLAGS += -I$(TC_SYS_ROOT)/include
|
#PROJECT_CPPFLAGS += -I$(TC_SYS_ROOT)/include
|
||||||
PROJECT_LDFLAGS += -L$(TC_SYS_ROOT)/lib
|
#PROJECT_LDFLAGS += -L$(TC_SYS_ROOT)/lib
|
||||||
|
|
||||||
else # we're not cross-compiling
|
else # we're not cross-compiling
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue