|
Lines 107-113
Link Here
|
| 107 |
end if |
107 |
end if |
| 108 |
|
108 |
|
| 109 |
'' set script file |
109 |
'' set script file |
| 110 |
ldcline += " -T \"" + bindir + "elf_i386.x\"" |
110 |
ldcline += " -T \"@GENTOO_FREEBASIC@/elf_i386.x\"" |
| 111 |
|
111 |
|
| 112 |
if( len( fbc.mapfile ) > 0) then |
112 |
if( len( fbc.mapfile ) > 0) then |
| 113 |
ldcline += " -Map " + fbc.mapfile |
113 |
ldcline += " -Map " + fbc.mapfile |
|
Lines 138-144
Link Here
|
| 138 |
ldcline += " -L \"" + libdir + QUOTE |
138 |
ldcline += " -L \"" + libdir + QUOTE |
| 139 |
|
139 |
|
| 140 |
'' and the current path to libs search list |
140 |
'' and the current path to libs search list |
| 141 |
ldcline += " -L \"./\"" |
141 |
ldcline += " -L \"./\" -L \"@GENTOO_GCC_LIB_PATH@\"" |
| 142 |
|
142 |
|
| 143 |
'' add additional user-specified library search paths |
143 |
'' add additional user-specified library search paths |
| 144 |
for i = 0 to fbc.pths-1 |
144 |
for i = 0 to fbc.pths-1 |
|
Lines 150-156
Link Here
|
| 150 |
ldcline += " \"" + libdir + "/crt1.o\"" |
150 |
ldcline += " \"" + libdir + "/crt1.o\"" |
| 151 |
end if |
151 |
end if |
| 152 |
ldcline += " \"" + libdir + "/crti.o\"" |
152 |
ldcline += " \"" + libdir + "/crti.o\"" |
| 153 |
ldcline += " \"" + libdir + "/crtbegin.o\"" |
153 |
ldcline += " \"@GENTOO_GCC_LIB_PATH@/crtbegin.o\"" |
| 154 |
|
154 |
|
| 155 |
'' init lib group |
155 |
'' init lib group |
| 156 |
ldcline += " -( " |
156 |
ldcline += " -( " |
|
Lines 166-172
Link Here
|
| 166 |
ldcline += "-) " |
166 |
ldcline += "-) " |
| 167 |
|
167 |
|
| 168 |
'' crt end stuff |
168 |
'' crt end stuff |
| 169 |
ldcline += " \"" + libdir + "/crtend.o\"" |
169 |
ldcline += " \"@GENTOO_GCC_LIB_PATH@/crtend.o\"" |
| 170 |
ldcline += " \"" + libdir + "/crtn.o\"" |
170 |
ldcline += " \"" + libdir + "/crtn.o\"" |
| 171 |
|
171 |
|
| 172 |
'' invoke ld |
172 |
'' invoke ld |