Source: ldc Version: 1:1.1.0-2 tags: patch Hi, can you please apply the following patch to fix build where fPIC is the default?
Description: pass fPIC to the static build Author: Gianfranco Costamagna <locutusofb...@debian.org> --- ldc-1.1.0.orig/CMakeLists.txt +++ ldc-1.1.0/CMakeLists.txt @@ -115,7 +115,7 @@ endif() # Setup D compiler flags and linker flags for phobos (system linker) etc. We use # DMD syntax for all the flags so we can work with both DMD and LDMD. -set(DDMD_DFLAGS "-wi") +set(DDMD_DFLAGS "-wi -fPIC") set(DDMD_LFLAGS "") if(NOT MSVC_IDE) # for multi-config builds, these options have to be added later to the custom command thanks G.
Description: pass fPIC to the static build Author: Gianfranco Costamagna <locutusofb...@debian.org> --- ldc-1.1.0.orig/CMakeLists.txt +++ ldc-1.1.0/CMakeLists.txt @@ -115,7 +115,7 @@ endif() # Setup D compiler flags and linker flags for phobos (system linker) etc. We use # DMD syntax for all the flags so we can work with both DMD and LDMD. -set(DDMD_DFLAGS "-wi") +set(DDMD_DFLAGS "-wi -fPIC") set(DDMD_LFLAGS "") if(NOT MSVC_IDE) # for multi-config builds, these options have to be added later to the custom command