refs #211: moved new_op into a lib

This commit is contained in:
bebbo 2023-11-14 16:16:43 +01:00
parent 287b715467
commit 087cf1a9c1
2 changed files with 6 additions and 5 deletions

View File

@ -363,10 +363,8 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
}
else
{
char const * add =
"../lib/gcc/m68k-amigaos/" DEFAULT_TARGET_VERSION "/new_op.o";
char const * p = amiga_m68k_prefix_func (1, &add);
generate_option_input_file (p, &new_decoded_options[j]);
generate_option (OPT_Wl_, "-l,new_op", 1, CL_DRIVER,
&new_decoded_options[j]);
}
++j;
}

View File

@ -3,7 +3,10 @@ LIB2ADD += $(srcdir)/config/m68k/gmon.c
new_op.o: $(srcdir)/config/m68k/new_op.c
$(CC) $(CFLAGS) -c $<
EXTRA_PARTS=new_op.o
libnew_op.a: new_op.o
$(AR) rcs libnew_op.a new_op.o
EXTRA_PARTS=libnew_op.a
# On Amiga, specifying -fnon-call-exceptions will needlessly pull in
# the unwinder in simple programs which use 64-bit division.