tcc-0.9.26-dlopenoptional.diff at [c951d6608a]

File build/tcc-patches/0.9.26/tcc-0.9.26-dlopenoptional.diff artifact 8888bda434 part of check-in c951d6608a


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;