WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@jon-turney
Copy link
Contributor

fb69d751 Fix Windows build with both ENABLED_SHARED and ENABLE_STATIC

Fix #375 when both shared and static libraries are built.

4b453061 Fix casing of "BaseTsd.h" include

Fix #436 for the case where cross-compiling to Windows.

Microsoft isn't consistent about the casing of header filenames in the
Windows SDK and documentation (e.g. "Windows.h" vs. "windows.h"), but
this doesn't matter on a case-insensitive filesystem.

If you are cross-compiling for Windows (e.g. using gcc), then the case
matters, and is practically controlled by the w32api headers provided by
MinGW64 project.
Define SOLV_STATIC_LIB for libsolv_static to avoid an error when
building it for Windows:

/work/libsolv/win32/getopt.c:11:14: error: variable ‘optind’ definition is marked dllimport
/work/libsolv/win32/getopt.c:11:24: error: variable ‘opterr’ definition is marked dllimport
/work/libsolv/win32/getopt.c:11:52: error: variable ‘__optreset’ definition is marked dllimport
v2:
Also run tests on Windows
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.

1 participant