Using i686-w64-mingw32-gcc-4.7.0-3_rubenvb.7z to build from the
http://luajit.org/luajit.html repo I get a lua51.dll with a dependency on
libwinpthread-1.dll. Specifically, the lua51.dll imports the pthread_key_create
and pthread_getspecific symbols.
I don't get the libwinpthread dependency when using a mingw.org 4.6.2 based
toolchain. I'd like to understand why this is and if/how to remove the
dependency. This dependency is not created when building a helloworld.c exe or
simple dll.
objdump -x lua51.dll
...
There is an import table in .idata at 0x66de1000
...
DLL Name: libwinpthread-1.dll
vma: Hint/Ord Member-Name Bound-To
619bc 62 pthread_getspecific
619d4 64 pthread_key_create
619ec 84 pthread_once
619fc 105 pthread_setspecific
== Win7 32bit build steps ==
git clone http://luajit.org/git/luajit-2.0.git
cd luajit-2.0\src
# tweak http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/Makefile like so
-CCOPT_X86= -march=i686
+CCOPT_X86= -march=native
-#XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
+XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
# prefix rubenvb 4.7.0-3 toolchain to PATH
set PATH=c:\mingw-rvb\bin;%PATH%
gcc --version
gcc (GCC) 4.7.0 20120311 (prerelease)
which mingw32-make
c:\mingw-rvb\bin\mingw32-make.EXE
mingw32-make clean
mingw32-make
...
"BUILDVM ../lib/vmdef.lua"
"LINK luajit.exe"
"OK Successfully built LuaJIT"
Jon
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public