Mercurial > pub > dyncall > dyncall
view portasm/gen-masm.sh @ 356:2f64957d6a46
- fix to dynload to build with musl libc (latter has dlinfo but not RTLD_SELF, so fallback to dl_iterate_phdr if on ELF targets)
author | Tassilo Philipp |
---|---|
date | Tue, 25 Feb 2020 16:07:45 +0100 |
parents | ab2d78e48ca2 |
children |
line wrap: on
line source
#!/bin/sh `which gcc || which clang` -E -P -DGEN_MASM ${1:?Usage: $0 <name> [<outsuffix>]}.S \ | sed "/^$/d;1i\\ ; auto-generated by `basename $0` ;s/$/ /" \ > $1$2.asm