projects/sencrypt

changeset 14:a779ed022a87

Use correct headers and libraries under Solaris/Illumos
author Guido Berhoerster <guido+sencrypt@berhoerster.name>
date Tue Sep 13 20:25:17 2016 +0200 (2016-09-13)
parents 5a992d873084
children 00ca3ee8e310
files Makefile
line diff
     1.1 --- a/Makefile	Tue Sep 13 19:50:38 2016 +0200
     1.2 +++ b/Makefile	Tue Sep 13 20:25:17 2016 +0200
     1.3 @@ -98,14 +98,18 @@
     1.4  all: $(PACKAGE) $(OBJS) $(MANPAGES)
     1.5  
     1.6  $(PACKAGE): XCPPFLAGS =		-D_XOPEN_SOURCE=600 -DOPENSSL_LOAD_CONF
     1.7 +$(PACKAGE): XCFLAGS :=	$(shell getconf LFS_CFLAGS)
     1.8 +$(PACKAGE): LDLIBS :=	-lcrypto
     1.9 +$(PACKAGE): XLDFLAGS :=	$(shell getconf LFS_LDFLAGS)
    1.10  ifeq ($(HAVE_ERR_H),1)
    1.11    $(PACKAGE): XCPPFLAGS +=	-DHAVE_ERR_H
    1.12  else
    1.13    OBJS +=			err.o
    1.14  endif
    1.15 -$(PACKAGE): XCFLAGS :=	$(shell getconf LFS_CFLAGS)
    1.16 -$(PACKAGE): LDLIBS :=	-lcrypto
    1.17 -$(PACKAGE): XLDFLAGS :=	$(shell getconf LFS_LDFLAGS)
    1.18 +ifeq ($(OS_NAME),SunOS)
    1.19 +  $(PACKAGE): XCPPFLAGS +=	-I/usr/xpg4/include
    1.20 +  $(PACKAGE): XLDFLAGS +=	-L/usr/xpg4/lib -R/usr/xpg4/lib
    1.21 +endif
    1.22  $(PACKAGE): $(OBJS)
    1.23  	$(LINK.o) $^ $(LDLIBS) -o $@
    1.24