Skip to content

Fix header and library capitalization for cross compilation#162

Closed
nhz2 wants to merge 1 commit intoip7z:mainfrom
nhz2:nz/fix-library-capitalization
Closed

Fix header and library capitalization for cross compilation#162
nhz2 wants to merge 1 commit intoip7z:mainfrom
nhz2:nz/fix-library-capitalization

Conversation

@nhz2
Copy link

@nhz2 nhz2 commented Oct 23, 2025

I am working on updating the Julia programming language to the latest version of 7zip Ref: JuliaPackaging/Yggdrasil#12372
We use cross-compilation to build 7zip for all supported platforms on a Linux machine.

I had to adjust the capitalization of a header file and some -l flags to get the cross-compilation to work.

@ip7z
Copy link
Owner

ip7z commented Oct 23, 2025

I'll fix it so:

#if defined(__MINGW32__) || defined(__MINGW64__)
#include <ntsecapi.h>
#else
#include <NTSecAPI.h>
#endif

We need these checks for mingw, because some another compilers still expect <NTSecAPI.h>.

@nhz2
Copy link
Author

nhz2 commented Oct 23, 2025

Thank you

@nhz2
Copy link
Author

nhz2 commented Mar 5, 2026

Fixed in 26.00

@nhz2 nhz2 closed this Mar 5, 2026
@nhz2 nhz2 deleted the nz/fix-library-capitalization branch March 5, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants