OSDN Git Service

Enable to track git://github.com/monaka/binutils.git
[pf3gnuchains/pf3gnuchains3x.git] / winsup / lsaauth / make-64bit-version-with-visual-c.bat
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 (file)
index 0000000..cd62303
--- /dev/null
@@ -0,0 +1,29 @@
+@echo off\r
+rem This batchfile shows how to generate a 64 bit version of cyglsa.dll.\r
+rem The 32 bit version will not work on 64 bit systems.\r
+rem\r
+rem Note that you need not only the SDK headers and libs, but also the\r
+rem 64 bit ntdll.lib file from a DDK supporting 64 bit builds.\r
+rem\r
+rem Make sure all necessary include paths are set in %Include% (inc\ddk,\r
+rem inc\atl, inc\crt) and make sure that %Lib% points to the 64 bit libs, not\r
+rem to the 32 bit libs.  In the latter case the link stage will succeed,\r
+rem but the resulting DLL is non-functional.\r
+rem\r
+rem This can be used as long as no x86_64-pe/coff capable gcc is available.\r
+rem Note that this is for building inside the source dir as not to interfere\r
+rem with the "official" 32 bit build in the build directory.\r
+rem\r
+rem Install the dll into /bin and use the cyglsa-config script to register it.\r
+rem Don't forget to reboot afterwards.\r
+rem\r
+rem Use "/DDEBUGGING" in the cl line to create debugging output to\r
+rem C:\cyglsa.dbgout at runtime.\r
+rem\r
+rem No idea when that changed, but in the latest SDKs you have to disable\r
+rem the security checks and there's apparently no runtmchk.lib anymore.\r
+rem I leave the old statements in for reference.\r
+rem cl /Wp64 /c cyglsa.c\r
+rem link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj runtmchk.lib advapi32.lib kernel32.lib ntdll.lib\r
+cl /Wp64 /EHs-c- /GS- /GR- /GL- /c cyglsa.c\r
+link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj advapi32.lib kernel32.lib ntdll.lib\r