package/quickjs: link with libatomic
authorPeter Seiderer <ps.report@gmx.net>
Sun, 3 Jan 2021 20:19:59 +0000 (21:19 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 3 Jan 2021 21:37:12 +0000 (22:37 +0100)
commitac992501e36aa1747d8633658f08694c6600b78e
tree23d0bba488caea6366d5ab5c195375730f49c2d4
parent1af6d7408cc9aa466c276a3d527c245c374dd7ec
package/quickjs: link with libatomic

Link with libatomic if available.

Fixes:

  - http://autobuild.buildroot.net/results/e0766eef95a2559d51e58d1a81a9c40df84ae509

  .../build/quickjs-2020-11-08/quickjs.c:12229: undefined reference to `__atomic_fetch_xor_1'

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[yann.morin.1998@free.fr:
  - make it a generic variable, not tied to -latomic
  - pass it in all step, like CROSS_PREFIX
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/quickjs/0001-Makefile-add-optional-link-with-libatomic.patch [new file with mode: 0644]
package/quickjs/quickjs.mk