diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:16:45 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-08-15 00:16:45 -0400 |
| commit | 723428bebe3105ad3c3406e416402d1831b482c4 (patch) | |
| tree | ff990e306163515973746ddfb261f29ba8765441 /binutils-1.9/hp-bin/mkhplib | |
| download | linux-0.01-distro-723428bebe3105ad3c3406e416402d1831b482c4.tar.gz linux-0.01-distro-723428bebe3105ad3c3406e416402d1831b482c4.tar.bz2 linux-0.01-distro-723428bebe3105ad3c3406e416402d1831b482c4.zip | |
Inital commit
Diffstat (limited to 'binutils-1.9/hp-bin/mkhplib')
| -rwxr-xr-x | binutils-1.9/hp-bin/mkhplib | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/binutils-1.9/hp-bin/mkhplib b/binutils-1.9/hp-bin/mkhplib new file mode 100755 index 0000000..2a86289 --- /dev/null +++ b/binutils-1.9/hp-bin/mkhplib @@ -0,0 +1,30 @@ +#!/bin/csh -f + +if (! -d /usr/local/lib/gnu) then + mkdir /usr/local/lib/gnu +endif + +# Make a dummy "libg.a". +/bin/ar q /tmp/libg$$.a +hpxt /tmp/libg$$.a /usr/local/lib/gnu/libg.a +rm -f /tmp/libg$$.a + +# Note: ordering of directories must be reverse of the normal search +# order! This is because we are compressing all of the directories +# into a single directory. If two directories each contain a library +# with the same name, the one we convert second will be the one we +# end up with. + +foreach dir (/usr/local/lib /usr/lib /lib) + cd $dir + foreach i (lib*.a) + echo "$dir/$i" + hpxt $i /usr/local/lib/gnu/$i + end +end + +cd /lib +foreach i (*crt0.o) + echo "/lib/$i" + hpxt $i /usr/local/lib/gnu/$i +end |
