Ticket #34: gdc-fixes.diff
| File gdc-fixes.diff, 2.9 kB (added by Florian, 6 years ago) |
|---|
-
Source/Makefile.gdc
old new 1 1 DMD=gdmd 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 199 199 version(Posix) { 200 200 char[] vCompilerExe=`gdc`; 201 201 char[] vCompileOnly= `-c`; 202 char[] vLinkerExe=`gd md`;202 char[] vLinkerExe=`gdc`; 203 203 bool vPostSwitches = false; 204 204 bool vAppendLinkSwitches = false; 205 205 char[] vArgDelim = " "; … … 213 213 char[] vConfigSep = ":"; 214 214 char[] vLibrarian = `ar`; 215 215 char[] vLibrarianOpts = `-r`; 216 char[] vLinkLibSwitch = "-l -L";216 char[] vLinkLibSwitch = "-l"; 217 217 char[] vHomePathId = "HOME"; 218 218 char[] vEtcPath = "/etc/"; 219 219 } … … 2204 2204 2205 2205 ReadCompilerConfigFile(); 2206 2206 2207 version(Posix) 2207 version(DigitalMars) 2208 { 2209 version(Posix) 2210 { 2211 // Unless supplied by the config file, these are the default 2212 // libraries to use for linking. 2213 if (vDefaultLibs.length == 0) 2214 { 2215 vDefaultLibs ~= "c"; 2216 vDefaultLibs ~= "phobos"; 2217 vDefaultLibs ~= "pthread"; 2218 vDefaultLibs ~= "m"; 2219 } 2220 } 2221 } 2222 2223 version(GNU) 2208 2224 { 2209 2225 // Unless supplied by the config file, these are the default 2210 2226 // libraries to use for linking. 2211 2227 if (vDefaultLibs.length == 0) 2212 2228 { 2213 2229 vDefaultLibs ~= "c"; 2214 vDefaultLibs ~= " phobos";2230 vDefaultLibs ~= "gphobos"; 2215 2231 vDefaultLibs ~= "pthread"; 2216 2232 vDefaultLibs ~= "m"; 2217 2233 } 2218 2234 } 2219 2235 2220 // Assume phobos will be ignored unless user has specified another set. 2221 if (vModulesToIgnore.length == 0) 2222 vModulesToIgnore ~= "phobos"; 2236 version(DigitalMars) 2237 { 2238 // Assume phobos will be ignored unless user has specified another set. 2239 if (vModulesToIgnore.length == 0) 2240 vModulesToIgnore ~= "phobos"; 2241 } 2242 2243 version(GNU) 2244 { 2245 // Assume gphobos will be ignored unless user has specified another set. 2246 if (vModulesToIgnore.length == 0) 2247 vModulesToIgnore ~= "gphobos"; 2248 } 2223 2249 2224 2250 // Rationalize the ignored modules list. 2225 2251 foreach(char[] m; vModulesToNotice) {
