summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09e2cdb)
raw | patch | inline | side by side (parent: 09e2cdb)
author | John Dowdal <jdowdal@ti.com> | |
Fri, 14 Nov 2014 19:49:51 +0000 (14:49 -0500) | ||
committer | John Dowdal <jdowdal@ti.com> | |
Fri, 14 Nov 2014 19:49:51 +0000 (14:49 -0500) |
Wrapping libraries with '-static -Wl,Bdynamic' is not a portable way,
because -static is passed to both compiler and linker, while -Bdynamic
is passed to linker only. On some toolchains it creates dynamically
linked binary which doesn't have dynamic linker in it.
Better to pass -static only to linker with '-Wl,-static -Wl,-Bdynamic'
Change-Id: I38300cf2ff115bf1681684130e1e49dfb290989e
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Taras Kondratiuk <taras@ti.com>
because -static is passed to both compiler and linker, while -Bdynamic
is passed to linker only. On some toolchains it creates dynamically
linked binary which doesn't have dynamic linker in it.
Better to pass -static only to linker with '-Wl,-static -Wl,-Bdynamic'
Change-Id: I38300cf2ff115bf1681684130e1e49dfb290989e
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Taras Kondratiuk <taras@ti.com>
test/armv7/linux/build/makefile | patch | blob | history |
index cd31e05bf98eb2dd5bf7626e90c099aeb20ebdbe..0d23d4a05291fe22f88b0723354ced9a77a1c520 100644 (file)
else
#forcing ARM executable to depend on static LLD libraries
EXE_EXTN =
else
#forcing ARM executable to depend on static LLD libraries
EXE_EXTN =
-LIBS = -static $(RM_LIB) -Wl,-Bdynamic $(DAEMON_LIB)
+LIBS = -Wl,-static $(RM_LIB) -Wl,-Bdynamic $(DAEMON_LIB)
endif
# Compiler options
endif
# Compiler options