Commits

Kevin Veroneau committed 0d8102b Draft

Added -fPIC to gcc -- required to compile on my 64-bit machine.

Comments (0)

Files changed (1)

 #!/bin/sh
 
 echo "Compiling static library..."
-gcc -c membank.c -o membank.o
-gcc -c strings.c -o strings.o -lm
-gcc -c math.c -o math.o -lm
+gcc -c membank.c -o membank.o -fPIC
+gcc -c strings.c -o strings.o -lm -fPIC
+gcc -c math.c -o math.o -lm -fPIC
 #gcc -c file.c -o file.o
 ar rcs libamos.a membank.o strings.o math.o
 ranlib libamos.a
 echo "Building shared library..."
 #gcc -c -fPIC libamos.c -o libamos.o
 gcc -shared -Wl,-soname,libamos.so.1 -o libamos.so.1 membank.o strings.o math.o -lm
-./compile-example.sh
+./compile-example.sh