Check-in [50ae80c10b]
Overview
Comment:Updated to make dlclose more workable on win32 when building statically
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 50ae80c10b066b2ecf33105941779657119a7c7c
User & Date: rkeene on 2016-03-20 07:50:57
Other Links: manifest | tags
Context
2016-03-20
07:51
tcc4tcl 0.24 check-in: 04e5469fb6 user: rkeene tags: trunk, 0.24
07:50
Updated to make dlclose more workable on win32 when building statically check-in: 50ae80c10b user: rkeene tags: trunk
2016-01-25
20:30
Updated to deal with FreeBSD headers with respect to va_args check-in: a431979fb3 user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-dlopenoptional.diff from [8888bda434] to [0780fc4d9c].

            1  +diff -uNr tcc-0.9.26.orig/libtcc.c tcc-0.9.26-1dlopenoptional/libtcc.c
            2  +--- tcc-0.9.26.orig/libtcc.c	2013-02-15 08:24:00.000000000 -0600
            3  ++++ tcc-0.9.26-1dlopenoptional/libtcc.c	2016-03-20 02:48:46.246782000 -0500
            4  +@@ -114,8 +114,8 @@
            5  + }
            6  + #endif
            7  + 
            8  +-#ifndef CONFIG_TCC_STATIC
            9  +-void dlclose(void *p)
           10  ++#if !defined(CONFIG_TCC_STATIC) || (defined(CONFIG_TCC_STATIC) && defined(CONFIG_TCC_STATIC_NODLOPEN))
           11  ++static void dlclose(void *p)
           12  + {
           13  +     FreeLibrary((HMODULE)p);
           14  + }
     1     15   diff -uNr tcc-0.9.26.orig/tccrun.c tcc-0.9.26-1dlopenoptional/tccrun.c
     2     16   --- tcc-0.9.26.orig/tccrun.c	2013-02-15 08:24:00.000000000 -0600
     3     17   +++ tcc-0.9.26-1dlopenoptional/tccrun.c	2014-05-21 23:33:35.056517000 -0500
     4     18   @@ -674,6 +674,7 @@
     5     19    /* ------------------------------------------------------------- */
     6     20    #ifdef CONFIG_TCC_STATIC
     7     21