#!/bin/sh
gcc -Wall -c -fPIC hypot.c
gcc -shared -Wl,-soname,hypot.so.1 hypot.o -o hypot.so.1.0 -lm
gcc -Wall -rdynamic prog.c -o prog -ldl
export LD_LIBRARY_PATH=.; ./prog

