Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libbsd / darwin-fix-libbsd.sym.patch
blobde40da981623bf6539f41ff45e78913f4cd7df18
1 diff --git a/src/Makefile.am b/src/Makefile.am
2 index 9d22b00..c6848fc 100644
3 --- a/src/Makefile.am
4 +++ b/src/Makefile.am
5 @@ -198,7 +198,9 @@ libbsd_ctor_a_SOURCES = \
6 # Generate a simple libtool symbol export list to be used as a fallback if
7 # there is no version script support.
8 libbsd.sym: libbsd.map
9 - $(AM_V_GEN) $(SED) -ne 's/^[[:space:]]\{1,\}\([A-Za-z0-9_]\{1,\}\);/\1/p' libbsd.map > $@
10 + $(AM_V_GEN) $(SED) -ne 's/^[[:space:]]\{1,\}\([A-Za-z0-9_]\{1,\}\);/\1/p' libbsd.map \
11 + | grep -Ev '(group_from_gid|user_from_uid|nlist|__fdnlist|bsd_getopt)' \
12 + > $@
14 if NEED_TRANSPARENT_LIBMD
15 TRANSPARENT_LIBMD_DEPENDS = format.ld