Files
elk/scripts/src/makedl-shl
T
sam 3132f65611 * Imported original elk 3.0 tree.
git-svn-id: svn://svn.zoy.org/elk/trunk@1 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:19:38 +00:00

25 lines
494 B
Plaintext

. ../config/system
. ../config/site
cat <<HERE
#!/bin/sh
# Link one dynamically loadable extension (an object file); or
# combine several object files into one dynamically loadable extension
# and resolve against libraries.
#
# Arguments are the output file and one or more object files and libraries.
if [ \$# -lt 2 ]; then
echo Usage: "\$0: output-file object-files [libraries]"
exit 1
fi
output=\$1
shift
$ld -b $obj_ldflags $xflag \$*
mv a.out \$output
chmod 755 \$output
HERE