mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
Compile cstdlib with -fPIC
This commit is contained in:
parent
23d56249ca
commit
8d5af96f46
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ include_directories(
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(${CSTDLIB_LIBRARY} STATIC ${cstdlib_SRCS})
|
add_library(${CSTDLIB_LIBRARY} STATIC ${cstdlib_SRCS})
|
||||||
|
if(NOT WIN32)
|
||||||
|
add_definitions( -fPIC )
|
||||||
|
endif()
|
||||||
if(NOT HAVE_FNMATCH AND WIN32)
|
if(NOT HAVE_FNMATCH AND WIN32)
|
||||||
# needed for PathMatchSpec for our fnmatch replacement
|
# needed for PathMatchSpec for our fnmatch replacement
|
||||||
target_link_libraries(${CSTDLIB_LIBRARY} ${SHLWAPI_LIBRARY})
|
target_link_libraries(${CSTDLIB_LIBRARY} ${SHLWAPI_LIBRARY})
|
||||||
|
|
Loading…
Reference in a new issue