Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
1f17cd15
Commit
1f17cd15
authored
Nov 10, 2004
by
Mike Hibler
Browse files
Goop to deal with Kerberos infected versions of libssl on linux.
parent
2059ecb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tip/GNUmakefile.in
View file @
1f17cd15
...
...
@@ -9,7 +9,17 @@ all: tip tiptunnel console
include $(TESTBED_SRCDIR)/GNUmakerules
#CC = gcc -g -O2 -DUSESOCKETS -DWITHSSL -I$(TESTBED_SRCDIR)/capture
SSLFLAGS = -DWITHSSL
SSLLIBS = -lssl -lcrypto
SYSTEM := $(shell uname -s)
ifeq ($(SYSTEM),Linux)
NEEDKERB := $(shell nm /usr/lib/libssl.a | grep -q krb; echo $$?)
ifeq ($(NEEDKERB),0)
SSLFLAGS += `/usr/kerberos/bin/krb5-config --cflags`
SSLLIBS += `/usr/kerberos/bin/krb5-config --libs krb5`
endif
endif
CC = gcc -g -O2 -DUSESOCKETS -I$(TESTBED_SRCDIR)/capture
OBJS = cmds.o cmdtab.o hunt.o partab.o \
...
...
@@ -22,8 +32,6 @@ TUNNELOBJS = tiptunnel.o
#
LIBS=
SSLLIBS = -lssl -lcrypto
#tip: $(OBJS)
# $(CC) -static -o tip $(OBJS) $(LIBS)
...
...
@@ -31,16 +39,16 @@ tip: $(TESTBED_SRCDIR)/tip/tip.deprecation
cp $(TESTBED_SRCDIR)/tip/tip.deprecation tip
tiptunnel.o: tiptunnel.c $(TESTBED_SRCDIR)/capture/capdecls.h
$(CC) -DWITHSSL -o tiptunnel.o -c $<
$(CC) $(SSLFLAGS) -o tiptunnel.o -c $<
tiptunnel: tiptunnel.o
$(CC) -static -o tiptunnel tiptunnel.o $(SSLLIBS)
# 'console' is tiptunnel, without SSL, and with localmode on by default.
console.o: tiptunnel.c $(TESTBED_SRCDIR)/capture/capdecls.h
$(CC) -DLOCALBYDEFAULT -o console.o -c $<
tiptunnel: tiptunnel.o
$(CC) -static -o tiptunnel tiptunnel.o $(SSLLIBS)
console: console.o
$(CC) -o console console.o
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment