Ticket #33: patch
| File patch, 3.3 kB (added by keinfarbton, 6 years ago) |
|---|
-
Source/Makefile.unix
old new 1 1 DMD=dmd 2 DFLAGS=-op -release -inline 2 DFLAGS=-op -release -inline -version=BuildVerbose 3 3 SOURCES=build.d util/pathex_bn.d util/pathex.d source_bn.d util/str.d build_bn.d util/booltype.d util/fdt_bn.d util/str_bn.d source.d util/fdt.d util/fileex.d util/fileex_bn.d util/linetoken.d util/linetoken_bn.d util/macro.d util/file2.d 4 4 5 5 all: build -
Source/build.d
old new 138 138 char[] vLibrarianOpts = `-c -p256`; 139 139 char[] vHomePathId = "HOME"; 140 140 char[] vEtcPath = ""; 141 char[] vSymInfoSwitch = "/co"; 142 char[] vOutFileSwitch = "-of"; 141 143 } 142 144 143 145 version(Posix) { … … 159 161 char[] vLibrarianOpts = `-r`; 160 162 char[] vHomePathId = "HOME"; 161 163 char[] vEtcPath = "/etc/"; 164 char[] vSymInfoSwitch = "-g"; 165 char[] vOutFileSwitch = "-o "; 162 166 } 163 167 164 168 char[] vVersionSwitch = "-version"; 165 169 char[] vDebugSwitch = "-debug"; 166 170 char[][] vCompilerDefs; 167 char[] vOutFileSwitch = "-of";168 171 char[] vImportPath = "-I"; 169 172 bool vUseModBaseName = false; 170 173 char[] vLinkLibSwitch = "-l"; 171 char[] vSymInfoSwitch = "/co";172 174 } 173 175 174 176 version(GNU) { … … 220 222 char[] vOutFileSwitch = "-o "; 221 223 char[][] vCompilerDefs; 222 224 char[] vImportPath = "-I "; 223 char[] vSymInfoSwitch = " /co";225 char[] vSymInfoSwitch = "-g"; 224 226 /* GDC places object files in the directory from which it is called */ 225 227 bool vUseModBaseName = true; 226 228 } … … 935 937 if (lFileName.length > 0) 936 938 { 937 939 lCmdItem = lFileName; 938 if ( util.str.ends(lCmdItem, "." ~ vLibExtention) == True)939 {940 // Cut off extention.941 lCmdItem.length = lCmdItem.length - vLibExtention.length - 1;942 lLibraryFiles ~= lCmdItem;943 }944 else945 {940 //if ( util.str.ends(lCmdItem, "." ~ vLibExtention) == True) 941 //{ 942 // // Cut off extention. 943 // lCmdItem.length = lCmdItem.length - vLibExtention.length - 1; 944 // lLibraryFiles ~= lCmdItem; 945 //} 946 //else 947 //{ 946 948 lFilesToLink ~= lCmdItem; 947 }949 //} 948 950 } 949 951 } 950 952 … … 1121 1123 { 1122 1124 if (util.str.begins(lCompileArg, "-L") == True) 1123 1125 { 1124 lLinkerSwitches ~= lCompileArg[2..$];1126 lLinkerSwitches ~= " " ~ lCompileArg[2..$]; 1125 1127 } 1126 1128 } 1127 1129 foreach( char[] lSwitch; std.string.split(vLinkerDefs ~ lLinkerSwitches, "/")) … … 2210 2212 { 2211 2213 vDefaultLibs ~= "c"; 2212 2214 vDefaultLibs ~= "phobos"; 2215 vDefaultLibs ~= "pthread"; 2213 2216 vDefaultLibs ~= "m"; 2214 2217 } 2215 2218 }
