Check-in [149997010d]
Overview
Comment:Updated to support not providing a dlopen symbol in the static archive (and default to not providing one in the shared archive)
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 149997010dc42b50a6a3e6fe105b9e8e22987c31
User & Date: rkeene on 2014-05-22 04:45:11
Other Links: manifest | tags
Context
2014-05-22
04:45
tcc4tcl 0.12 check-in: 5fb5de4c85 user: rkeene tags: trunk, 0.12
04:45
Updated to support not providing a dlopen symbol in the static archive (and default to not providing one in the shared archive) check-in: 149997010d user: rkeene tags: trunk
2014-05-20
20:15
Updated to set CPPFLAGS separately form CFLAGS check-in: 8ef4137624 user: rkeene tags: trunk
Changes

Added build/tcc-patches/0.9.26/tcc-0.9.26-dlopenoptional.diff version [8888bda434].







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -uNr tcc-0.9.26.orig/tccrun.c tcc-0.9.26-1dlopenoptional/tccrun.c
--- tcc-0.9.26.orig/tccrun.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1dlopenoptional/tccrun.c	2014-05-21 23:33:35.056517000 -0500
@@ -674,6 +674,7 @@
 /* ------------------------------------------------------------- */
 #ifdef CONFIG_TCC_STATIC
 
+#ifndef CONFIG_TCC_STATIC_NODLOPEN
 /* dummy function for profiling */
 ST_FUNC void *dlopen(const char *filename, int flag)
 {
@@ -688,6 +689,7 @@
 {
     return "error";
 }
+#endif
 
 typedef struct TCCSyms {
     char *str;

Modified configure.ac from [b2aa5f3b46] to [66cbea103c].

33
34
35
36
37
38
39


40
41
42
43
44


45
46
47












48
49
50
51
52
53
54

if test "${TCC4TCL_TARGET}" = "shared"; then
	dnl Determine how to make shared objects
	DC_GET_SHOBJFLAGS

	dnl Only export symbols we wish to expose
	TARGET="tcc4tcl.${SHOBJEXT}"


else
	AC_CHECK_TOOL([RANLIB], [ranlib])
	AC_CHECK_TOOL([AR], [ar])

	TARGET="tcc4tcl-static.a"


fi
AC_SUBST(TARGET)
AC_SUBST(TCC4TCL_TARGET)













dnl Perform Tcl Extension required stuff
TCLEXT_INIT

dnl This must be done last since it breaks the compilation
if test "${TCC4TCL_TARGET}" = "shared"; then
	DC_SETVERSIONSCRIPT([tcc4tcl.vers], [tcc4tcl.syms])







>
>





>
>



>
>
>
>
>
>
>
>
>
>
>
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

if test "${TCC4TCL_TARGET}" = "shared"; then
	dnl Determine how to make shared objects
	DC_GET_SHOBJFLAGS

	dnl Only export symbols we wish to expose
	TARGET="tcc4tcl.${SHOBJEXT}"

	no_dlopen='1'
else
	AC_CHECK_TOOL([RANLIB], [ranlib])
	AC_CHECK_TOOL([AR], [ar])

	TARGET="tcc4tcl-static.a"

	no_dlopen='0'
fi
AC_SUBST(TARGET)
AC_SUBST(TCC4TCL_TARGET)

AC_ARG_WITH([dlopen], AS_HELP_STRING([--without-dlopen], [do not define dlopen/dlclose/dlerror]), [
	if test "$withval" = "no"; then
		no_dlopen='1'
	else
		no_dlopen='0'
	fi
])

if test "$no_dlopen" = '1'; then
	CPPFLAGS="${CPPFLAGS} -DCONFIG_TCC_STATIC_NODLOPEN=1"
fi

dnl Perform Tcl Extension required stuff
TCLEXT_INIT

dnl This must be done last since it breaks the compilation
if test "${TCC4TCL_TARGET}" = "shared"; then
	DC_SETVERSIONSCRIPT([tcc4tcl.vers], [tcc4tcl.syms])