Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / memorymapping / setup-hook.sh
blob5ee3470fe3705689dfcb48fa10c0444624736d77
1 useMemorymapping () {
2 export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include fmemopen.h";
3 export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemorymapping";
6 postHooks+=(useMemorymapping)