summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-27 22:34:47 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-27 22:34:47 -0400
commitf9c9d8c333494c0a81301d326f28528d96594efd (patch)
treee9ba36bd7fbd6f97edcdd6888aaca503a86ac443 /INSTALL
parent207c45d7abdf7a4bd93973f195deb4d8e202c3e3 (diff)
downloadmusl-f9c9d8c333494c0a81301d326f28528d96594efd.tar.gz
musl-f9c9d8c333494c0a81301d326f28528d96594efd.tar.bz2
musl-f9c9d8c333494c0a81301d326f28528d96594efd.tar.xz
musl-f9c9d8c333494c0a81301d326f28528d96594efd.zip
minor updates to INSTALL documentation
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL10
1 files changed, 10 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 5dd7b677..9e2c0061 100644
--- a/INSTALL
+++ b/INSTALL
@@ -18,6 +18,11 @@ where musl is the default/primary/only libc.
The default prefix is /usr/local/musl for a reason, but some people
may prefer /opt/musl or $HOME/musl.
+For shared library support, the dynamic linker pathname needs to be
+hard-coded into every program you link to musl. Ideally, you should
+leave the path ($syslibdir) set to /lib unless you are unable to
+install files to /lib, in which case you can change it.
+
STEP 2: Compiling
@@ -56,3 +61,8 @@ Be aware that (at present) libraries linked against glibc are unlikely
to be usable, and the musl-gcc wrapper inhibits search of the system
library paths in any case. You'll need to compile any prerequisite
libraries (like ncurses, glib, etc.) yourself.
+
+Note: If you want the system headers to behave something like glibc's
+and expose the kitchen sink by default, you might want to try
+CC="musl-gcc -D_GNU_SOURCE" instead of just CC=musl-gcc. This is
+needed for compiling many programs with portability issues.