Skip to content

Commit

Permalink
put compat getpagesize into the right object list
Browse files Browse the repository at this point in the history
Was getting this linker error building shared libraries on Windows:

Creating library C:/projects/portable/build/ssl/Release/ssl.lib and object C:/projects/portable/build/ssl/Release/ssl.exp
recallocarray.obj : error LNK2019: unresolved external symbol getpagesize referenced in function

getpagesize should be in compat rather than crypto object file list.
  • Loading branch information
busterb committed Mar 7, 2024
1 parent 41034e5 commit c7d8355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ if(NOT HAVE_GETOPT)
endif()

if(NOT HAVE_GETPAGESIZE)
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c)
set(COMPAT_SRC ${COMPAT_SRC} compat/getpagesize.c)
endif()

if(NOT HAVE_GETPROGNAME)
Expand Down

0 comments on commit c7d8355

Please sign in to comment.