X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=winsup%2Flsaauth%2Fmake-64bit-version-with-visual-c.bat;fp=winsup%2Flsaauth%2Fmake-64bit-version-with-visual-c.bat;h=cd623038eefde14ea69cb6e1a74c4e2f86c6b103;hb=ae4bf010374a9320497af260fa90af3fe8e2c5a5;hp=0000000000000000000000000000000000000000;hpb=3cc729069938336ea54d399c4bbbe7d197295f9a;p=pf3gnuchains%2Fpf3gnuchains3x.git diff --git a/winsup/lsaauth/make-64bit-version-with-visual-c.bat b/winsup/lsaauth/make-64bit-version-with-visual-c.bat new file mode 100644 index 0000000000..cd623038ee --- /dev/null +++ b/winsup/lsaauth/make-64bit-version-with-visual-c.bat @@ -0,0 +1,29 @@ +@echo off +rem This batchfile shows how to generate a 64 bit version of cyglsa.dll. +rem The 32 bit version will not work on 64 bit systems. +rem +rem Note that you need not only the SDK headers and libs, but also the +rem 64 bit ntdll.lib file from a DDK supporting 64 bit builds. +rem +rem Make sure all necessary include paths are set in %Include% (inc\ddk, +rem inc\atl, inc\crt) and make sure that %Lib% points to the 64 bit libs, not +rem to the 32 bit libs. In the latter case the link stage will succeed, +rem but the resulting DLL is non-functional. +rem +rem This can be used as long as no x86_64-pe/coff capable gcc is available. +rem Note that this is for building inside the source dir as not to interfere +rem with the "official" 32 bit build in the build directory. +rem +rem Install the dll into /bin and use the cyglsa-config script to register it. +rem Don't forget to reboot afterwards. +rem +rem Use "/DDEBUGGING" in the cl line to create debugging output to +rem C:\cyglsa.dbgout at runtime. +rem +rem No idea when that changed, but in the latest SDKs you have to disable +rem the security checks and there's apparently no runtmchk.lib anymore. +rem I leave the old statements in for reference. +rem cl /Wp64 /c cyglsa.c +rem link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj runtmchk.lib advapi32.lib kernel32.lib ntdll.lib +cl /Wp64 /EHs-c- /GS- /GR- /GL- /c cyglsa.c +link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj advapi32.lib kernel32.lib ntdll.lib