summaryrefslogtreecommitdiff
path: root/pcr/sacd-ripper/sacd-ripper-glibc.patch
blob: ab737f040017d5eaf837ea3bd9d8bd17d81ed1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tools/sacd_extract/CMakeLists.txt b/tools/sacd_extract/CMakeLists.txt
index 2f48e25..228ce7b 100644
--- a/tools/sacd_extract/CMakeLists.txt
+++ b/tools/sacd_extract/CMakeLists.txt
@@ -51,8 +51,8 @@ elseif(WIN32)
 elseif(APPLE)
   set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIRARIES} -liconv -lpthread")
 else()
-  add_definitions(-D_FILE_OFFSET_BITS=64)
-  set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIRARIES} -lpthread -liconv")
+  add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE)
+  set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIRARIES} -lpthread")
 endif()
 
 file(GLOB libcommon_headers ../../libs/libcommon/*.h)