diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-07-13 13:14:41 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-07-13 13:14:41 +0000 |
commit | 5a0c7f1df9585c63a5438a07480afccb661a706d (patch) | |
tree | b234ae65bce4de3ee98d44802948206a67c615ac /winsup/lsaauth/make-64bit-version-with-visual-c.bat | |
parent | 25dab6dc60abf8e526d47ea9770de2e655868d60 (diff) | |
download | newlib-5a0c7f1df9585c63a5438a07480afccb661a706d.zip newlib-5a0c7f1df9585c63a5438a07480afccb661a706d.tar.gz newlib-5a0c7f1df9585c63a5438a07480afccb661a706d.tar.bz2 |
* cyglsa.c: Don't include ntddk.h.
(RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead
of "inline".
(uni_alloc): Change second argument to USHORT.
(printf): Move definition of ap to make Visual-C++ happy.
(LsaApLogonUserEx): Compute size of datastructure returned to
LSA on 64 bit systems correctly to avoid heap corruption.
* cyglsa64.dll: Regenerate.
* make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft
toolchains. Add more comment.
* mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser.
Diffstat (limited to 'winsup/lsaauth/make-64bit-version-with-visual-c.bat')
-rw-r--r-- | winsup/lsaauth/make-64bit-version-with-visual-c.bat | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/winsup/lsaauth/make-64bit-version-with-visual-c.bat b/winsup/lsaauth/make-64bit-version-with-visual-c.bat index 9f2ac08..95741dc 100644 --- a/winsup/lsaauth/make-64bit-version-with-visual-c.bat +++ b/winsup/lsaauth/make-64bit-version-with-visual-c.bat @@ -5,6 +5,11 @@ 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 rem that %Lib% points to the 64 bit libs, not
+rem 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.
@@ -12,5 +17,13 @@ rem rem Install the dll into /bin and use the cyglsa-config script to register it.
rem Don't forget to reboot afterwards.
rem
-cl /Wp64 /c cyglsa.c
-link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj runtmchk.lib advapi32.lib kernel32.lib ntdll.lib
+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
|