summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-18 01:26:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-18 01:26:47 +0200
commit14a6ee07dae44039db18aa41a089453b132871f1 (patch)
tree977e0577049380ffc256c4009d84c0db21bba216 /hurd
parent9e404235a8aa9a44c8ecde7fc82aac3616d00aa1 (diff)
talk about libdl hardcoding
Diffstat (limited to 'hurd')
-rw-r--r--hurd/porting/guidelines.mdwn4
1 files changed, 4 insertions, 0 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn
index fc71aa7c..8f21a64f 100644
--- a/hurd/porting/guidelines.mdwn
+++ b/hurd/porting/guidelines.mdwn
@@ -279,6 +279,10 @@ With Python, you can use the [`errno` module](http://docs.python.org/library/err
err.errno == errno.ENOENT:
...
+## <a name="libdl"> undefined reference to `dlopen`, `dlsym`, `dlclose` </a>
+
+Configure script often hardcode the library that contains dlopen & such (`-ldl'), and only for Linux. Simply add the other GNU OS cases: replace `linux*' with `linux*|gnu*|k*bsd*-gnu`
+
## <a name="linux_headers"> Missing `linux/types.h`, `asm/types.h`, `linux/limits.h`, `asm/byteorder.h`, `sys/endian.h`, `asm/ioctl.h`, `asm/ioctls.h`, `linux/soundcard.h` </a>
These are often used (from lame rgrep results) instead of their standard equivalents: `sys/types.h` (or `stdint.h` for fixed-size types), `limits.h`, `endian.h`, `sys/ioctl.h`, `sys/soundcard.h`