From 90e075c3c755aa6d5ccbd03c4f35eaaed287531f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 9 Jan 2004 00:03:55 +0000 Subject: [PATCH] If supported, add -init and -fini flags to the linker invocation. --- tools/winegcc/winewrap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/winegcc/winewrap.c b/tools/winegcc/winewrap.c index 781a76827e..58712fb604 100644 --- a/tools/winegcc/winewrap.c +++ b/tools/winegcc/winewrap.c @@ -617,7 +617,11 @@ int main(int argc, char **argv) link_args = strarray_alloc(); strarray_add(link_args, cpp ? "g++" : "gcc"); strarray_add(link_args, "-shared"); +#ifdef HAVE_LINKER_INIT_FINI + strarray_add(link_args, "-Wl,-Bsymbolic,-z,defs,-init,__wine_spec_init,-fini,__wine_spec_fini"); +#else strarray_add(link_args, "-Wl,-Bsymbolic,-z,defs"); +#endif for (i = 0; i < llib_paths->size; i++) strarray_add(link_args, llib_paths->base[i]); -- 2.32.0.93.g670b81a890