File: 08_remove_system_processor.patch

package info (click to toggle)
dcmtk 3.6.4-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,480 kB
  • sloc: cpp: 271,774; ansic: 47,307; makefile: 5,280; sh: 4,318; perl: 850; xml: 182; lex: 103
file content (22 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Remove the systemprocessor name in the compilate
 Required for reproducible builds, and it is also not reliable 
Author: Gert Wollny <gw.fossdev@gmail.com>

--- a/CMake/dcmtkPrepare.cmake
+++ b/CMake/dcmtkPrepare.cmake
@@ -373,15 +373,6 @@
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L")
   endif()
 
-  option(DCMTK_FORCE_FPIC_ON_UNIX "Add -fPIC compiler flag on unix 64 bit machines to allow linking from dynamic libraries even if DCMTK is built statically" OFF)
-  mark_as_advanced(DCMTK_FORCE_FPIC_ON_UNIX)
-
-  # Setting for IA64 / x86_64 which needs -fPIC compiler flag required for shared library build on these platforms
-  if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND DCMTK_FORCE_FPIC_ON_UNIX)
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
-  endif()
-
 endif()
 
 # define libraries and object files that must be linked to most Windows applications