Mercurial > projects > sencrypt
changeset 14:a779ed022a87
Use correct headers and libraries under Solaris/Illumos
author | Guido Berhoerster <guido+sencrypt@berhoerster.name> |
---|---|
date | Tue, 13 Sep 2016 20:25:17 +0200 |
parents | 5a992d873084 |
children | 00ca3ee8e310 |
files | Makefile |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Sep 13 19:50:38 2016 +0200 +++ b/Makefile Tue Sep 13 20:25:17 2016 +0200 @@ -98,14 +98,18 @@ all: $(PACKAGE) $(OBJS) $(MANPAGES) $(PACKAGE): XCPPFLAGS = -D_XOPEN_SOURCE=600 -DOPENSSL_LOAD_CONF +$(PACKAGE): XCFLAGS := $(shell getconf LFS_CFLAGS) +$(PACKAGE): LDLIBS := -lcrypto +$(PACKAGE): XLDFLAGS := $(shell getconf LFS_LDFLAGS) ifeq ($(HAVE_ERR_H),1) $(PACKAGE): XCPPFLAGS += -DHAVE_ERR_H else OBJS += err.o endif -$(PACKAGE): XCFLAGS := $(shell getconf LFS_CFLAGS) -$(PACKAGE): LDLIBS := -lcrypto -$(PACKAGE): XLDFLAGS := $(shell getconf LFS_LDFLAGS) +ifeq ($(OS_NAME),SunOS) + $(PACKAGE): XCPPFLAGS += -I/usr/xpg4/include + $(PACKAGE): XLDFLAGS += -L/usr/xpg4/lib -R/usr/xpg4/lib +endif $(PACKAGE): $(OBJS) $(LINK.o) $^ $(LDLIBS) -o $@