mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 04:20:38 -09:00
package/ghostscript: link with libatomic if needed
Fixes: https://autobuild.buildroot.net/results/eed/eed88a2a77cb8c4ff8c59bac5091221e6873004c/ The build error occurs since 2024 so a backport to LTS branches should be considered: https://autobuild.buildroot.net/results/1ab/1ab4767c1198838c3e3d126cdba790197d102053/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
55cec1d013
commit
9c0385972d
@@ -37,6 +37,11 @@ GHOSTSCRIPT_CONF_ENV = \
|
||||
CFLAGSAUX="$(HOST_CFLAGS) $(HOST_LDFLAGS)" \
|
||||
PKGCONFIG="$(PKG_CONFIG_HOST_BINARY)"
|
||||
|
||||
# Uses __atomic_fetch_add_4
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
GHOSTSCRIPT_MAKE_ENV += XTRALIBS=-latomic
|
||||
endif
|
||||
|
||||
GHOSTSCRIPT_CONF_OPTS = \
|
||||
--disable-compile-inits \
|
||||
--enable-fontconfig \
|
||||
|
||||
Reference in New Issue
Block a user