summaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
authorBaruch Sterin <baruchs@gmail.com>2016-12-22 18:15:29 -0800
committerBaruch Sterin <baruchs@gmail.com>2016-12-22 18:15:29 -0800
commitb9dfb992c78e3c8786dee303e4a9994d46b6990a (patch)
tree0db7240b7082759875246103ff6f6d57cedf7063 /readme.md
parent7d0648e24098ed0e6a0a1471a52946303c351c87 (diff)
downloadabc-b9dfb992c78e3c8786dee303e4a9994d46b6990a.tar.gz
abc-b9dfb992c78e3c8786dee303e4a9994d46b6990a.tar.bz2
abc-b9dfb992c78e3c8786dee303e4a9994d46b6990a.zip
(1) Makefile: added a shared library target, (2) no longer compile the main function as part of libabc.a
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index c7a6816d..ca9a90ba 100644
--- a/readme.md
+++ b/readme.md
@@ -53,6 +53,13 @@ The current version of ABC can be compiled with C compiler or C++ compiler.
* To compile as C++ code with namespaces: make sure that `CC=g++` and `ABC_NAMESPACE` is set to
the name of the requested namespace. For example, add `-DABC_NAMESPACE=xxx` to OPTFLAGS.
+## Building a shared library
+
+ * Compile the code as position-independent by adding `ABC_USE_PIC=1`.
+ * Build the `libabc.so` target:
+
+ make ABC_USE_PIC=1 libabc.so
+
## Bug reporting:
Please try to reproduce all the reported bugs and unexpected features using the latest