diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
commit | f3fa149e507bf5cca1f499d48c780a4853e7b2c5 (patch) | |
tree | fc446fdc671ff5cba0874bb000ab7f2c378a36be /src/gns/nss/Makefile.am | |
parent | dc994999f6702effb64e5bfc3eb727ee0f3723ef (diff) | |
download | gnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.tar.gz gnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.zip |
-allow installation even as non-root non-sudo user to succeed with new nss code
Diffstat (limited to 'src/gns/nss/Makefile.am')
-rw-r--r-- | src/gns/nss/Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gns/nss/Makefile.am b/src/gns/nss/Makefile.am index c5e415dbf..582aa0696 100644 --- a/src/gns/nss/Makefile.am +++ b/src/gns/nss/Makefile.am | |||
@@ -21,15 +21,22 @@ EXTRA_DIST = map-file | |||
21 | 21 | ||
22 | AM_LDFLAGS=-avoid-version -module -export-dynamic | 22 | AM_LDFLAGS=-avoid-version -module -export-dynamic |
23 | 23 | ||
24 | if HAVE_SUDO | ||
24 | nssdir = /lib/ | 25 | nssdir = /lib/ |
26 | else | ||
27 | nssdir = $(libdir) | ||
28 | endif | ||
29 | |||
25 | LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool | 30 | LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool |
26 | 31 | ||
27 | if !MINGW | 32 | if !MINGW |
33 | if HAVE_SUDO | ||
28 | nss_LTLIBRARIES = \ | 34 | nss_LTLIBRARIES = \ |
29 | libnss_gns.la \ | 35 | libnss_gns.la \ |
30 | libnss_gns4.la \ | 36 | libnss_gns4.la \ |
31 | libnss_gns6.la | 37 | libnss_gns6.la |
32 | endif | 38 | endif |
39 | endif | ||
33 | 40 | ||
34 | sources = util.c util.h query.h query.c | 41 | sources = util.c util.h query.h query.c |
35 | 42 | ||