blob: 260ed6334db923108508208bb49695f2c926d790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
LIB2ADD=$(srcdir)/config/nvptx/reduction.c \
$(srcdir)/config/nvptx/mgomp.c \
$(srcdir)/config/nvptx/atomic.c
# Until we have libstdc++-v3/libsupc++ proper.
LIB2ADD += $(srcdir)/c++-minimal/guard.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
|