skawarePackages: support static builds via pkgsStatic

Most of the skaware packages already build just fine with pkgsStatic,
however the wrapper scripts for execline and stdnotify-wrapper needed
the `-lskarlib` argument to go at the end.

`utmps` and `nsss` still fail with this error:

```
exec ./tools/install.sh -D -m 600 utmps-utmpd /bin/utmps-utmpd
/build/utmps-0.0.3.1/tools/install.sh: line 48: can't create /bin/utmps-utmpd.tmp.479: Permission denied
make: *** [Makefile:121: /bin/utmps-utmpd] Error 1
```
This commit is contained in:
Profpatsch
2020-02-10 13:51:50 +01:00
parent 7329dfcc63
commit bf3bd5fee1
3 changed files with 15 additions and 6 deletions

View File

@@ -23,13 +23,13 @@ in runCommandCC "sdnotify-wrapper" {
mkdir -p $bin/bin
mkdir $out
# just dynamic for now
# the -lskarnet has to come at the end to support static builds
$CC \
-o $bin/bin/sdnotify-wrapper \
-I${skalibs.dev}/include \
-L${skalibs.lib}/lib \
-lskarnet \
${src}
${src} \
-lskarnet
mkdir -p $doc/share/doc/sdnotify-wrapper
# copy the documentation comment