On Tue, 2006-01-24 at 10:29 +0100, Arnaud Charlet wrote: > Otherwise, we could modify systematically the binder/linker to always > call gcc with either -static-libgcc or -shared-libgcc when linking, depending > on whether shared libs are used. Or we could make this capability optional > and enabled with a flag in link.c named e.g. "__gnat_force_libgcc_switch"
You mean value of zero or one, zero everywhere but if on darwin (what's the define for this target?), imported in gnatlink.adb, if one then if GNAT_Static add -static-libgcc elsif GNAT_Shared add -shared-libgcc? Looks a bit tricky since I don't know the code, but doable. Laurent