summaryrefslogtreecommitdiff
path: root/note_compiler/howtocompile.txt
diff options
context:
space:
mode:
Diffstat (limited to 'note_compiler/howtocompile.txt')
-rw-r--r--note_compiler/howtocompile.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/note_compiler/howtocompile.txt b/note_compiler/howtocompile.txt
new file mode 100644
index 0000000..3bb6cd8
--- /dev/null
+++ b/note_compiler/howtocompile.txt
@@ -0,0 +1,4 @@
+gcc -fPIC -g -c -Wall a.c
+gcc -fPIC -g -c -Wall b.c
+gcc -shared -fPIC -Wl,-soname,libmystuff.so.1 \
+ -o libmystuff.so.1.0.1 a.o b.o -lc