diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-11 23:21:06 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-11 23:21:06 +0000 |
commit | 0d73b6d411026fbd9a949b493ff4cb1080547835 (patch) | |
tree | f5d32eee7418b9d17f17fbea34d0b467eafceddc /libs/nixio/Makefile | |
parent | 11ff9204cf9b2fd451bf8e0e0dd3fe3f078c2808 (diff) |
libs/nixio: allow building without shadow password support
Diffstat (limited to 'libs/nixio/Makefile')
-rw-r--r-- | libs/nixio/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/nixio/Makefile b/libs/nixio/Makefile index 2a7552daf7..fb91388d0d 100644 --- a/libs/nixio/Makefile +++ b/libs/nixio/Makefile @@ -10,6 +10,7 @@ AXTLS_VERSION = 1.2.1 AXTLS_DIR = axTLS AXTLS_FILE = $(AXTLS_DIR)-$(AXTLS_VERSION).tar.gz NIXIO_TLS ?= openssl +NIXIO_SHADOW ?= $(shell echo 'int main(void){ return !getspnam("root"); }' | $(CC) -include shadow.h -xc -o/dev/null - 2>/dev/null && echo yes) NIXIO_SO = nixio.so NIXIO_LDFLAGS = @@ -45,6 +46,10 @@ ifeq ($(NIXIO_TLS),) NIXIO_CFLAGS += -DNO_TLS endif +ifneq ($(NIXIO_SHADOW),yes) + NIXIO_CFLAGS += -DNO_SHADOW +endif + ifeq ($(OS),SunOS) NIXIO_LDFLAGS += -lsocket -lnsl -lsendfile |