]> rtime.felk.cvut.cz Git - omk.git/commit
sysless and gcc: use make if for decision between C and C++ linker.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 9 Jan 2019 23:30:13 +0000 (00:30 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 9 Jan 2019 23:30:13 +0000 (00:30 +0100)
commitd7a4ec0d4e21df78a408d57b89eacbc96f8c22e4
tree50a71be53db133b4a431fc1449fdf5aad7c0da60
parent2aeb41b75426e067acb977a6f9b3c44387d108e6
sysless and gcc: use make if for decision between C and C++ linker.

Use of echo leads to problem when strings protected by aposthrophes
are used in TARGET_ARCH variable. FOr example

TARGET_ARCH += '-D__weak=__attribute__((weak))'

Apostrophes are stripped by echo and then brackets are
misinterpreted by shell.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
snippets/gcc.omk