2163
|
1 #! /bin/sh |
|
2 # |
|
3 # mkoctfile -- create a .oct file suitable for dynamic linking by |
|
4 # Octave. |
|
5 |
3051
|
6 # Exit immediately on any error. |
|
7 |
2163
|
8 set -e |
|
9 |
6311
|
10 : ${SED=%OCTAVE_CONF_SED%} |
|
11 |
6086
|
12 OCTAVE_VERSION=%OCTAVE_CONF_VERSION% |
6311
|
13 OCTAVE_PREFIX=%OCTAVE_CONF_PREFIX% |
|
14 |
6682
|
15 DEFAULT_BINDIR=%OCTAVE_BINDIR% |
|
16 DEFAULT_INCLUDEDIR=%OCTAVE_CONF_INCLUDEDIR% |
6710
|
17 DEFAULT_LIBDIR=%OCTAVE_CONF_LIBDIR% |
6311
|
18 DEFAULT_OCTINCLUDEDIR=%OCTAVE_CONF_OCTINCLUDEDIR% |
|
19 DEFAULT_OCTLIBDIR=%OCTAVE_CONF_OCTLIBDIR% |
|
20 |
|
21 if [ -n "$OCTAVE_HOME" ]; then |
6682
|
22 DEFAULT_BINDIR="`echo $DEFAULT_BINDIR | $SED "s,^$OCTAVE_PREFIX,$OCTAVE_HOME,"`" |
|
23 DEFAULT_INCLUDEDIR="`echo $DEFAULT_INCLUDEDIR | $SED "s,^$OCTAVE_PREFIX,$OCTAVE_HOME,"`" |
6710
|
24 DEFAULT_LIBDIR="`echo $DEFAULT_LIBDIR | $SED "s,^$OCTAVE_PREFIX,$OCTAVE_HOME,"`" |
6319
|
25 DEFAULT_OCTINCLUDEDIR="`echo $DEFAULT_OCTINCLUDEDIR | $SED "s,^$OCTAVE_PREFIX,$OCTAVE_HOME,"`" |
|
26 DEFAULT_OCTLIBDIR="`echo $DEFAULT_OCTLIBDIR | $SED "s,^$OCTAVE_PREFIX,$OCTAVE_HOME,"`" |
6311
|
27 fi |
|
28 |
6682
|
29 : ${BINDIR=$DEFAULT_BINDIR} |
|
30 : ${INCLUDEDIR=$DEFAULT_INCLUDEDIR} |
6710
|
31 : ${LIBDIR=$DEFAULT_LIBDIR} |
6311
|
32 : ${OCTINCLUDEDIR=$DEFAULT_OCTINCLUDEDIR} |
|
33 : ${OCTLIBDIR=$DEFAULT_OCTLIBDIR} |
|
34 |
|
35 DEFAULT_INCFLAGS="-I$OCTINCLUDEDIR -I$OCTINCLUDEDIR/octave" |
|
36 if [ "$INCLUDEDIR" != /usr/include ]; then |
|
37 DEFAULT_INCFLAGS="$DEFAULT_INCFLAGS -I$INCLUDEDIR" |
|
38 fi |
|
39 |
|
40 DEFAULT_LFLAGS="-L$OCTLIBDIR" |
6710
|
41 if [ "$LIBDIR" != /usr/lib ]; then |
|
42 DEFAULT_LFLAGS="$DEFAULT_LFLAGS -L$LIBDIR" |
|
43 fi |
5285
|
44 |
3051
|
45 # Default values for these variables are filled in when Octave is |
|
46 # compiled. |
|
47 |
6682
|
48 : ${EXEEXT=%OCTAVE_CONF_EXEEXT%} |
|
49 |
3590
|
50 : ${CPPFLAGS=%OCTAVE_CONF_CPPFLAGS%} |
6311
|
51 : ${INCFLAGS=$DEFAULT_INCFLAGS} |
3847
|
52 : ${F2C=%OCTAVE_CONF_F2C%} |
|
53 : ${F2CFLAGS=%OCTAVE_CONF_F2CFLAGS%} |
3590
|
54 : ${F77=%OCTAVE_CONF_F77%} |
|
55 : ${FFLAGS=%OCTAVE_CONF_FFLAGS%} |
|
56 : ${FPICFLAG=%OCTAVE_CONF_FPICFLAG%} |
|
57 : ${CC=%OCTAVE_CONF_CC%} |
|
58 : ${CFLAGS=%OCTAVE_CONF_CFLAGS%} |
|
59 : ${CPICFLAG=%OCTAVE_CONF_CPICFLAG%} |
|
60 : ${CXX=%OCTAVE_CONF_CXX%} |
|
61 : ${CXXFLAGS=%OCTAVE_CONF_CXXFLAGS%} |
|
62 : ${CXXPICFLAG=%OCTAVE_CONF_CXXPICFLAG%} |
|
63 : ${XTRA_CFLAGS=%OCTAVE_CONF_XTRA_CFLAGS%} |
|
64 : ${XTRA_CXXFLAGS=%OCTAVE_CONF_XTRA_CXXFLAGS%} |
3051
|
65 |
3846
|
66 : ${DEPEND_FLAGS=%OCTAVE_CONF_DEPEND_FLAGS%} |
|
67 : ${DEPEND_EXTRA_SED_PATTERN=%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%} |
|
68 |
4759
|
69 : ${DL_LD=%OCTAVE_CONF_DL_LD%} |
|
70 : ${DL_LDFLAGS=%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%} |
3051
|
71 |
3859
|
72 : ${RLD_FLAG=%OCTAVE_CONF_RLD_FLAG%} |
|
73 : ${RDYNAMIC_FLAG=%OCTAVE_CONF_RDYNAMIC_FLAG%} |
4228
|
74 : ${LIBOCTAVE=-loctave} |
|
75 : ${LIBOCTINTERP=-loctinterp} |
|
76 : ${LIBREADLINE=-lreadline} |
|
77 : ${LIBCRUFT=-lcruft} |
3859
|
78 : ${BLAS_LIBS=%OCTAVE_CONF_BLAS_LIBS%} |
|
79 : ${FFTW_LIBS=%OCTAVE_CONF_FFTW_LIBS%} |
|
80 : ${LIBS=%OCTAVE_CONF_LIBS%} |
|
81 : ${FLIBS=%OCTAVE_CONF_FLIBS%} |
|
82 : ${LD_CXX=%OCTAVE_CONF_LD_CXX%} |
|
83 : ${LDFLAGS=%OCTAVE_CONF_LDFLAGS%} |
|
84 : ${LD_STATIC_FLAG=%OCTAVE_CONF_LD_STATIC_FLAG%} |
6311
|
85 : ${LFLAGS=$DEFAULT_LFLAGS} |
3859
|
86 |
3051
|
87 : ${ALL_FFLAGS="$FFLAGS"} |
|
88 |
3131
|
89 : ${ALL_CFLAGS="$INCFLAGS $XTRA_CFLAGS $CFLAGS"} |
3051
|
90 |
3131
|
91 : ${ALL_CXXFLAGS="$INCFLAGS $XTRA_CXXFLAGS $CXXFLAGS"} |
3051
|
92 |
3887
|
93 : ${ALL_LDFLAGS="$LD_STATIC_FLAG $CPICFLAG $LDFLAGS"} |
3859
|
94 |
4228
|
95 : ${OCTAVE_LIBS="$LIBOCTINTERP $LIBOCTAVE $SPECIAL_MATH_LIB $LIBCRUFT"} |
3859
|
96 |
3051
|
97 # Local variables. |
|
98 |
|
99 usage_msg="usage: mkoctfile [options] file ..." |
|
100 |
5285
|
101 version_msg="mkoctfile, version $OCTAVE_VERSION" |
|
102 |
3051
|
103 cfiles= |
|
104 ccfiles= |
|
105 f77files= |
|
106 objfiles= |
6294
|
107 libfiles= |
3051
|
108 octfiles= |
|
109 octfile= |
3860
|
110 outputfile= |
3088
|
111 incflags= |
3180
|
112 defs= |
3051
|
113 ldflags= |
|
114 dbg=: |
4873
|
115 pass_on_options= |
3058
|
116 strip=false |
4199
|
117 no_oct_file_strip_on_this_platform=%NO_OCT_FILE_STRIP% |
3735
|
118 link=true |
3859
|
119 link_stand_alone=false |
5864
|
120 output_ext=".oct" |
3846
|
121 depend=false |
|
122 compile=true |
3051
|
123 |
|
124 if [ $# -eq 0 ]; then |
3847
|
125 echo $usage_msg 1>&2 |
3846
|
126 exit 1 |
2163
|
127 fi |
|
128 |
5285
|
129 if [ $# -eq 1 ]; then |
|
130 case "$1" in |
|
131 -v | --version) |
|
132 echo $version_msg 1>&2 |
|
133 exit 0 |
|
134 ;; |
|
135 esac |
|
136 fi |
|
137 |
3051
|
138 while [ $# -gt 0 ]; do |
|
139 file= |
|
140 case "$1" in |
|
141 *.c) |
|
142 file=$1 |
|
143 cfiles="$cfiles $file" |
|
144 ;; |
|
145 *.cc | *.C | *.cpp) |
|
146 file=$1 |
|
147 ccfiles="$ccfiles $file" |
|
148 ;; |
5970
|
149 *.f | *.F | *.f90 | *.F90) |
3051
|
150 file=$1 |
|
151 f77files="$f77files $file" |
|
152 ;; |
|
153 *.o) |
|
154 file=$1 |
|
155 objfiles="$objfiles $file" |
|
156 ;; |
6294
|
157 *.a) |
|
158 file=$1 |
|
159 libfiles="$libfiles $file" |
|
160 ;; |
3058
|
161 -d | --debug | -v | --verbose) |
3051
|
162 dbg=echo |
|
163 ;; |
3233
|
164 -h | -\? | --help) |
3847
|
165 echo $usage_msg 1>&2 |
3051
|
166 cat << EOF |
2163
|
167 |
3051
|
168 Options: |
|
169 |
3233
|
170 -h, -?, --help Print this message. |
3734
|
171 |
3088
|
172 -IDIR Add -IDIR to compile commands. |
3734
|
173 |
5483
|
174 -idirafter DIR Add -idirafter DIR to compile commands. |
|
175 |
3180
|
176 -DDEF Add -DDEF to compile commands. |
3734
|
177 |
3058
|
178 -lLIB Add library LIB to link command. |
3734
|
179 |
3087
|
180 -LDIR Add -LDIR to link command. |
3734
|
181 |
3846
|
182 -M, --depend Generate dependency files (.d) for C and C++ |
|
183 source files. |
|
184 |
5199
|
185 -RDIR Add -RDIR to link command. |
|
186 |
6153
|
187 -Wl,... Pass flags though the linker like -Wl,-rpath=... |
|
188 |
|
189 -W... Pass flags though the compiler like -Wa,OPTION. |
5199
|
190 |
3859
|
191 -c, --compile Compile, but do not link. |
3735
|
192 |
3859
|
193 -o FILE, --output FILE Output file name. Default extension is .oct |
5864
|
194 (or .mex if --mex is specified) unless linking |
|
195 a stand-alone executable. |
3734
|
196 |
5904
|
197 -g Enable debugging options for compilers. |
|
198 |
3734
|
199 -p VAR, --print VAR Print configuration variable VAR. Recognized |
|
200 variables are: |
|
201 |
5669
|
202 ALL_CFLAGS FFTW_LIBS |
|
203 ALL_CXXFLAGS FLIBS |
|
204 ALL_FFLAGS FPICFLAG |
|
205 ALL_LDFLAGS INCFLAGS |
|
206 BLAS_LIBS LDFLAGS |
|
207 CC LD_CXX |
|
208 CFLAGS LD_STATIC_FLAG |
|
209 CPICFLAG LFLAGS |
|
210 CPPFLAGS LIBCRUFT |
|
211 CXX LIBOCTAVE |
|
212 CXXFLAGS LIBOCTINTERP |
|
213 CXXPICFLAG LIBREADLINE |
|
214 DEPEND_EXTRA_SED_PATTERN LIBS |
|
215 DEPEND_FLAGS OCTAVE_LIBS |
|
216 DL_LD RDYNAMIC_FLAG |
|
217 DL_LDFLAGS RLD_FLAG |
|
218 F2C SED |
|
219 F2CFLAGS XTRA_CFLAGS |
|
220 F77 XTRA_CXXFLAGS |
|
221 FFLAGS |
3859
|
222 |
|
223 --link-stand-alone Link a stand-alone executable file. |
|
224 |
5864
|
225 --mex Assume we are creating a MEX file. Set the |
|
226 default output extension to ".mex". |
|
227 |
3058
|
228 -s, --strip Strip output file. |
3734
|
229 |
3058
|
230 -v, --verbose Echo commands as they are executed. |
3051
|
231 |
|
232 FILE Compile or link FILE. Recognized file types are: |
|
233 |
3847
|
234 .c C source |
|
235 .cc C++ source |
|
236 .C C++ source |
|
237 .cpp C++ source |
5970
|
238 .f Fortran source (fixed form) |
|
239 .F Fortran source (fixed form) |
|
240 .f90 Fortran source (free form) |
|
241 .F90 Fortran source (free form) |
3847
|
242 .o object file |
6294
|
243 .a library file |
2163
|
244 |
3051
|
245 EOF |
|
246 exit 0 |
|
247 ;; |
3088
|
248 -I*) |
3176
|
249 incflags="$incflags $1" |
3088
|
250 ;; |
5483
|
251 -idirafter) |
|
252 shift |
|
253 if [ $# -gt 0 ]; then |
|
254 incflags="$incflags -idirafter $1" |
|
255 else |
6782
|
256 echo "mkoctfile: include directory name missing" 1>&2 |
5483
|
257 fi |
|
258 ;; |
3180
|
259 -D*) |
|
260 defs="$defs $1" |
|
261 ;; |
6153
|
262 -[lLR]* | -Wl,*) |
3176
|
263 ldflags="$ldflags $1" |
3058
|
264 ;; |
3846
|
265 -M | --depend) |
|
266 depend=true |
|
267 compile=false |
|
268 ;; |
3051
|
269 -o | --output) |
|
270 shift |
|
271 if [ $# -gt 0 ]; then |
3860
|
272 outputfile="$1" |
3051
|
273 else |
3847
|
274 echo "mkoctfile: output file name missing" 1>&2 |
3051
|
275 fi |
|
276 ;; |
3734
|
277 -p | --print) |
|
278 shift |
|
279 if [ $# -gt 0 ]; then |
|
280 eval echo \${$1} |
|
281 exit 0 |
|
282 else |
3847
|
283 echo "mkoctfile: --print requires argument" 1>&2 |
3734
|
284 exit 1 |
|
285 fi |
|
286 ;; |
3058
|
287 -s | --strip) |
4199
|
288 if $no_oct_file_strip_on_this_platform; then |
|
289 echo "mkoctfile: stripping disabled on this platform" 1>&2 |
|
290 else |
|
291 strip=true |
|
292 fi |
3051
|
293 ;; |
3859
|
294 -c | --compile) |
3735
|
295 link=false |
|
296 ;; |
5904
|
297 -g) |
|
298 ALL_CFLAGS="$ALL_CFLAGS -g" |
|
299 ALL_CXXFLAGS="$ALL_CXXFLAGS -g" |
|
300 ALL_FFLAGS="$ALL_FFLAGS -g" |
|
301 ;; |
3859
|
302 --link-stand-alone) |
|
303 link_stand_alone=true |
|
304 ;; |
5864
|
305 --mex) |
6009
|
306 incflags="$incflags -I." |
5864
|
307 output_ext=".mex" |
|
308 ;; |
4873
|
309 -W*) |
|
310 pass_on_options="$pass_on_options $1" |
|
311 ;; |
3051
|
312 *) |
3847
|
313 echo "mkoctfile: unrecognized argument $1" 1>&2 |
3051
|
314 exit 1 |
|
315 ;; |
|
316 esac |
|
317 if [ -n "$file" ]; then |
|
318 if [ -z "$octfile" ]; then |
3859
|
319 octfile="$file" |
3051
|
320 fi |
|
321 fi |
|
322 shift |
|
323 done |
2163
|
324 |
3859
|
325 if $link_stand_alone; then |
3860
|
326 if [ -n "$outputfile" ]; then |
|
327 output_option="-o $outputfile" |
|
328 fi |
3859
|
329 else |
3860
|
330 if [ -n "$outputfile" ]; then |
|
331 octfile="$outputfile" |
|
332 else |
6187
|
333 octfile=`basename $octfile` |
5864
|
334 octfile=`echo $octfile | $SED 's,\.[^.]*$,,'`$output_ext |
3860
|
335 fi |
3859
|
336 fi |
|
337 |
3846
|
338 # Generate dependency files for C and C++ files. |
|
339 |
|
340 if $depend; then |
|
341 if [ -n "$cfiles" ]; then |
|
342 for f in $cfiles; do |
4084
|
343 b=`echo $f | $SED 's,\.c$,,'` |
3846
|
344 d=$b.d |
3847
|
345 cmd="rm -f $d" |
|
346 $dbg $cmd |
|
347 eval $cmd |
4206
|
348 cmd="$CC $DEPEND_FLAGS $CPPFLAGS $ALL_CFLAGS $incflags $def $f | $SED $DEPEND_EXTRA_SED_PATTERN -e 's,^[^:]*/\(.*\.o\):,\1:,' -e 's,$b\.o,pic/& & $d,g' > $d-t && mv $d-t $d" |
3846
|
349 $dbg $cmd |
|
350 eval $cmd |
|
351 done |
|
352 fi |
|
353 |
|
354 if [ -n "$ccfiles" ]; then |
|
355 for f in $ccfiles; do |
|
356 case $f in |
3847
|
357 *.cc) |
4084
|
358 b=`echo $f | $SED 's,\.cc$,,'` |
3847
|
359 ;; |
|
360 *.C) |
4084
|
361 b=`echo $f | $SED 's,\.C$,,'` |
3847
|
362 ;; |
|
363 *.cpp) |
4084
|
364 b=`echo $f | $SED 's,\.cpp$,,'` |
3847
|
365 ;; |
3846
|
366 esac |
|
367 d=$b.d |
3847
|
368 cmd="rm -f $d" |
|
369 $dbg $cmd |
|
370 eval $cmd |
4206
|
371 cmd="$CXX $DEPEND_FLAGS $CPPFLAGS $ALL_CXXFLAGS $incflags $defs $f | $SED $DEPEND_EXTRA_SED_PATTERN -e 's,^[^:]*/\(.*\.o\):,\1:,' -e 's,$b\.o,pic/& & $d,g' > $d-t && mv $d-t $d" |
3846
|
372 $dbg $cmd |
|
373 eval $cmd |
|
374 done |
|
375 fi |
|
376 # If generating dependencies, that's all we do. |
|
377 exit 0 |
|
378 fi |
|
379 |
3051
|
380 # Compile Fortran, C, and C++ files. Add the name of each object file |
|
381 # that is produced to the overall list of object files. |
2163
|
382 |
3051
|
383 if [ -n "$f77files" ]; then |
|
384 for f in $f77files; do |
|
385 case $f in |
|
386 *.f) |
4084
|
387 b=`echo $f | $SED 's,\.f$,,'` |
3051
|
388 ;; |
|
389 *.F) |
4084
|
390 b=`echo $f | $SED 's,\.F$,,'` |
3051
|
391 ;; |
5970
|
392 *.f90) |
|
393 b=`echo $f | $SED 's,\.f90$,,'` |
|
394 ;; |
|
395 *.F90) |
|
396 b=`echo $f | $SED 's,\.F90$,,'` |
|
397 ;; |
3051
|
398 esac |
3847
|
399 if [ -n "$F77" ]; then |
5159
|
400 if [ -n "$outputfile" ]; then |
|
401 if $link; then |
|
402 o=$b.o |
|
403 else |
|
404 o=$outputfile |
|
405 fi |
|
406 else |
|
407 o=$b.o |
|
408 fi |
3847
|
409 objfiles="$objfiles $o" |
5970
|
410 cmd="$F77 -c $FPICFLAG $ALL_FFLAGS $incflags $defs $pass_on_options $f -o $o" |
3847
|
411 $dbg $cmd |
|
412 eval $cmd |
|
413 elif [ -n "$F2C" ]; then |
|
414 c=$b.c |
|
415 cfiles="$cfiles $c" |
|
416 cmd="$F2C $F2CFLAGS < $f > $c" |
|
417 $dbg $cmd |
|
418 eval $cmd |
|
419 else |
|
420 echo "mkoctfile: no way to compile Fortran file $f" 1>&2 |
|
421 fi |
3051
|
422 done |
|
423 fi |
2163
|
424 |
3051
|
425 if [ -n "$cfiles" ]; then |
|
426 for f in $cfiles; do |
3847
|
427 if [ -n "$CC" ]; then |
4084
|
428 b=`echo $f | $SED 's,\.c$,,'` |
5159
|
429 if [ -n "$outputfile" ]; then |
|
430 if $link; then |
|
431 o=$b.o |
|
432 else |
|
433 o=$outputfile |
|
434 fi |
|
435 else |
|
436 o=$b.o |
|
437 fi |
3847
|
438 objfiles="$objfiles $o" |
4873
|
439 cmd="$CC -c $CPPFLAGS $CPICFLAG $ALL_CFLAGS $pass_on_options $incflags $defs $f -o $o" |
3847
|
440 $dbg $cmd |
|
441 eval $cmd |
|
442 else |
|
443 echo "mkoctfile: no way to compile C++ file $f" 1>&2 |
|
444 fi |
3051
|
445 done |
|
446 fi |
2163
|
447 |
3051
|
448 if [ -n "$ccfiles" ]; then |
|
449 for f in $ccfiles; do |
3847
|
450 if [ -n "$CXX" ]; then |
|
451 case $f in |
|
452 *.cc) |
4084
|
453 b=`echo $f | $SED 's,\.cc$,,'` |
3847
|
454 ;; |
|
455 *.C) |
4084
|
456 b=`echo $f | $SED 's,\.C$,,'` |
3847
|
457 ;; |
|
458 *.cpp) |
4084
|
459 b=`echo $f | $SED 's,\.cpp$,,'` |
3847
|
460 ;; |
|
461 esac |
5159
|
462 if [ -n "$outputfile" ]; then |
|
463 if $link; then |
|
464 o=$b.o |
|
465 else |
|
466 o=$outputfile |
|
467 fi |
|
468 else |
|
469 o=$b.o |
|
470 fi |
3847
|
471 objfiles="$objfiles $o" |
4873
|
472 cmd="$CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $pass_on_options $incflags $defs $f -o $o" |
3847
|
473 $dbg $cmd |
|
474 eval $cmd |
|
475 else |
|
476 echo "mkoctfile: no way to compile C++ file $f" 1>&2 |
|
477 fi |
3051
|
478 done |
|
479 fi |
|
480 |
3660
|
481 ## Uncomment the following group of lines if you get `Text file busy' |
|
482 ## errors from ld. This may happen if the .oct file is currently |
|
483 ## running while you are trying to recompile it. We try moving first, |
3733
|
484 ## since on some systems (HP-UX, maybe others) it is possible to |
3660
|
485 ## rename running programs but not remove them. |
|
486 |
3663
|
487 ## if [ -f "$octfile" ]; then |
3847
|
488 ## cmd="mv $octfile $octfile.bak" |
|
489 ## $dbg $cmd |
|
490 ## eval $cmd |
|
491 ## cmd="rm -f $octfile.bak" |
|
492 ## $dbg $cmd |
|
493 ## eval $cmd |
3663
|
494 ## fi |
3659
|
495 |
3051
|
496 # Link all the object files. |
|
497 |
5285
|
498 if $link && [ -n "$objfiles" ]; then |
3859
|
499 if $link_stand_alone; then |
|
500 if [ -n "$LD_CXX" ]; then |
6294
|
501 cmd="$LD_CXX $CPPFLAGS $ALL_CXXFLAGS $RDYNAMIC_FLAG $ALL_LDFLAGS $pass_on_options $output_option $objfiles $libfiles $ldflags $LFLAGS $RLD_FLAG $OCTAVE_LIBS $BLAS_LIBS $FFTW_LIBS $LIBREADLINE $LIBS $FLIBS" |
3859
|
502 $dbg $cmd |
|
503 eval $cmd |
|
504 else |
|
505 echo "mkoctfile: no way to link stand-alone executable file" 1>&2 |
|
506 exit 1 |
|
507 fi |
|
508 else |
4793
|
509 LINK_DEPS="$LFLAGS $OCTAVE_LIBS $LDFLAGS $BLAS_LIBS $FFTW_LIBS $LIBS $FLIBS" |
6294
|
510 cmd="$DL_LD $DL_LDFLAGS $pass_on_options -o $octfile $objfiles $libfiles $ldflags $LINK_DEPS" |
3859
|
511 $dbg $cmd |
|
512 eval $cmd |
|
513 fi |
3058
|
514 |
|
515 # Maybe strip it. |
|
516 |
3847
|
517 if $strip; then |
|
518 cmd="strip $octfile" |
|
519 $dbg $cmd |
|
520 eval $cmd |
|
521 fi |
3735
|
522 fi |
3058
|
523 |
|
524 exit 0 |