1LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o ritm-stub.o ditm-stub.o \
2	jvrc-stub.o cxaf-stub.o \
3	pthread_default_stacksize_np-stub.o \
4	pthread_mutex_lock-stub.o \
5	pthread_mutex_unlock-stub.o \
6	pthread_once-stub.o \
7	gnu_lto_v1-stub.o
8
9rfi-stub.o: $(srcdir)/config/pa/stublib.c
10	$(gcc_compile) -c -O2 -DL_register_frame_info $<
11
12dfi-stub.o: $(srcdir)/config/pa/stublib.c
13	$(gcc_compile) -c -O2 -DL_deregister_frame_info $<
14
15ritm-stub.o: $(srcdir)/config/pa/stublib.c
16	$(gcc_compile) -c -O2 -DL_ITM_registerTMCloneTable $<
17
18ditm-stub.o: $(srcdir)/config/pa/stublib.c
19	$(gcc_compile) -c -O2 -DL_ITM_deregisterTMCloneTable $<
20
21cxaf-stub.o: $(srcdir)/config/pa/stublib.c
22	$(gcc_compile) -c -O2 -DL_cxa_finalize $<
23
24jvrc-stub.o: $(srcdir)/config/pa/stublib.c
25	$(gcc_compile) -c -O2 -DL_Jv_RegisterClasses $<
26
27pthread_default_stacksize_np-stub.o: $(srcdir)/config/pa/stublib.c
28	$(gcc_compile) -c -O2 -DL_pthread_default_stacksize_np $<
29
30pthread_mutex_lock-stub.o: $(srcdir)/config/pa/stublib.c
31	$(gcc_compile) -c -O2 -DL_pthread_mutex_lock $<
32
33pthread_mutex_unlock-stub.o: $(srcdir)/config/pa/stublib.c
34	$(gcc_compile) -c -O2 -DL_pthread_mutex_unlock $<
35
36pthread_once-stub.o: $(srcdir)/config/pa/stublib.c
37	$(gcc_compile) -c -O2 -DL_pthread_once $<
38
39gnu_lto_v1-stub.o: $(srcdir)/config/pa/stublib.c
40	$(gcc_compile) -c -O2 -DL_gnu_lto_v1 $<
41
42libgcc_stub.a: $(LIBGCCSTUB_OBJS)
43	-rm -rf $@
44	$(AR) rc $@ $(LIBGCCSTUB_OBJS)
45	$(RANLIB) $@
46