This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld --export-all, --exclude-libs,ALL


What about this compromise:

-Wl,--exclude-libs,ALL
excludes all libs (act like dlltool/dllwrap)  

-Wl,--exclude-libs,libfoo.a,libbar.a
exludes the specified libs

In pe-dll.c (auto-export)

for (ex = excludes; ex; ex = ex->next)
    {
      if (ex->type == 1) /* exclude-libs */
	{
	  if (libname
              && ((strcmp (libname, ex->string) == 0))
		 || stricmp ("ALL", ex->string) == 0)))
            return 0;
	}
      else /* exclude-symbols */ 
        if (strcmp (n, ex->string) == 0)
          return 0;	      		
    }


http://shopping.yahoo.com.au - Yahoo! Shopping
- Get organised for Christmas early this year!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]