Commit d1f572a3 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Makefile hacks that allow stuff to build on Redhat 9.0 with the screwy

ssh libraries that want kerberos.
parent 9ffea497
...@@ -27,6 +27,11 @@ LDFLAGS += -static -L../lib -L${OBJDIR}/lib/libtb ...@@ -27,6 +27,11 @@ LDFLAGS += -static -L../lib -L${OBJDIR}/lib/libtb
LIBS += -levent -ltb -lcrypto LIBS += -levent -ltb -lcrypto
LIBS += `elvin-config --libs vin4c` LIBS += `elvin-config --libs vin4c`
ifeq ($(SYSTEM),Linux) ifeq ($(SYSTEM),Linux)
NEEDKERB := $(shell nm /usr/lib/libssl.a | grep -q krb; echo $$?)
ifeq ($(NEEDKERB),0)
CFLAGS += `/usr/kerberos/bin/krb5-config --cflags`
LIBS += `/usr/kerberos/bin/krb5-config --libs krb5`
endif
LIBS += -ldl LIBS += -ldl
endif endif
......
...@@ -10,7 +10,10 @@ OBJDIR = ../.. ...@@ -10,7 +10,10 @@ OBJDIR = ../..
SUBDIR = event/proxy SUBDIR = event/proxy
SYSTEM := $(shell uname -s) SYSTEM := $(shell uname -s)
PROGRAMS = evproxy proxytest evproxyclient evproxyserver PROGRAMS = evproxy proxytest
ifneq ($(SYSTEM),Linux)
PROGRAMS += evproxyclient evproxyserver
endif
include $(OBJDIR)/Makeconf include $(OBJDIR)/Makeconf
...@@ -44,6 +47,11 @@ LDFLAGS += -L$(OBJDIR)/lib -L$(OBJDIR)/lib/libtb -L../lib ...@@ -44,6 +47,11 @@ LDFLAGS += -L$(OBJDIR)/lib -L$(OBJDIR)/lib/libtb -L../lib
LIBS += -levent -ltb -lcrypto LIBS += -levent -ltb -lcrypto
LIBS += `elvin-config --libs vin4c` LIBS += `elvin-config --libs vin4c`
ifeq ($(SYSTEM),Linux) ifeq ($(SYSTEM),Linux)
NEEDKERB := $(shell nm /usr/lib/libssl.a | grep -q krb; echo $$?)
ifeq ($(NEEDKERB),0)
CFLAGS += `/usr/kerberos/bin/krb5-config --cflags`
LIBS += `/usr/kerberos/bin/krb5-config --libs krb5`
endif
LIBS += -ldl LIBS += -ldl
endif endif
......
...@@ -42,6 +42,11 @@ LDFLAGS += -L$(OBJDIR)/lib -L$(OBJDIR)/lib/libtb -L../lib ...@@ -42,6 +42,11 @@ LDFLAGS += -L$(OBJDIR)/lib -L$(OBJDIR)/lib/libtb -L../lib
LIBS += -levent -lcrypto LIBS += -levent -lcrypto
LIBS += `elvin-config --libs vin4c` LIBS += `elvin-config --libs vin4c`
ifeq ($(SYSTEM),Linux) ifeq ($(SYSTEM),Linux)
NEEDKERB := $(shell nm /usr/lib/libssl.a | grep -q krb; echo $$?)
ifeq ($(NEEDKERB),0)
CFLAGS += `/usr/kerberos/bin/krb5-config --cflags`
LIBS += `/usr/kerberos/bin/krb5-config --libs krb5`
endif
LIBS += -ldl LIBS += -ldl
endif endif
......
...@@ -58,6 +58,11 @@ endif ...@@ -58,6 +58,11 @@ endif
ifeq ($(SYSTEM),Linux) ifeq ($(SYSTEM),Linux)
# Linux # Linux
NEEDKERB := $(shell nm /usr/lib/libssl.a | grep -q krb; echo $$?)
ifeq ($(NEEDKERB),0)
CFLAGS += `/usr/kerberos/bin/krb5-config --cflags`
LIBS += `/usr/kerberos/bin/krb5-config --libs krb5`
endif
CFLAGS += -DLINUX CFLAGS += -DLINUX
YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t
LIBS += -ll -ldl LIBS += -ll -ldl
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment