blob: 5e2e27898fd61afcb64a7f6ea2436d4133ec6282 [file] [log] [blame]
LIB2ADD=$(srcdir)/config/nvptx/reduction.c \
$(srcdir)/config/nvptx/mgomp.c \
$(srcdir)/config/nvptx/atomic.c \
$(srcdir)/config/nvptx/unwind-nvptx.c \
$(srcdir)/config/nvptx/alloca.c
LIB2ADDEH=
LIB2FUNCS_EXCLUDE=
# Wrapping of 'main'.
LIB2FUNCS_EXCLUDE += __main
crt0.o: $(srcdir)/config/nvptx/crt0.c
$(crt_compile) -c $<
# Prevent building "advanced" stuff (for example, gcov support). We don't
# support it, and it may cause the build to fail, because of alloca usage, for
# example.
INHIBIT_LIBC_CFLAGS = -Dinhibit_libc
# Support for global constructors/destructors is implemented via the
# nvptx-tools 'ld' and the following helpers.
LIB2ADD += $(srcdir)/config/nvptx/gbl-ctors.c
LIB2FUNCS_EXCLUDE += _ctors