| 1 |
LIB2ADD=$(srcdir)/config/nvptx/reduction.c \ |
| 2 |
$(srcdir)/config/nvptx/mgomp.c \ |
| 3 |
$(srcdir)/config/nvptx/atomic.c \ |
| 4 |
$(srcdir)/config/nvptx/unwind-nvptx.c \ |
| 5 |
$(srcdir)/config/nvptx/alloca.c |
| 6 |
|
| 7 |
LIB2ADDEH= |
| 8 |
LIB2FUNCS_EXCLUDE= |
| 9 |
|
| 10 |
# Wrapping of 'main'. |
| 11 |
LIB2FUNCS_EXCLUDE += __main |
| 12 |
crt0.o: $(srcdir)/config/nvptx/crt0.c |
| 13 |
$(crt_compile) -c $< |
| 14 |
|
| 15 |
# Prevent building "advanced" stuff (for example, gcov support). We don't |
| 16 |
# support it, and it may cause the build to fail, because of alloca usage, for |
| 17 |
# example. |
| 18 |
INHIBIT_LIBC_CFLAGS = -Dinhibit_libc |
| 19 |
|
| 20 |
# Support for global constructors/destructors is implemented via the |
| 21 |
# nvptx-tools 'ld' and the following helpers. |
| 22 |
LIB2ADD += $(srcdir)/config/nvptx/gbl-ctors.c |
| 23 |
LIB2FUNCS_EXCLUDE += _ctors |