Commit e55d837
committed
Fix Windows build with ENABLED_SHARED and ENABLE_STATIC
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 dllimport1 parent f8cc714 commit e55d837
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments