Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2008 00:58:34 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 147416 for review
Message-ID:  <200808150058.m7F0wYjt082971@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147416

Change 147416 by csjp@ibm01 on 2008/08/15 00:57:48

	- Drop in the crypto code for the writer (client) side
	- Fix the Makefile so that only use the pthread linking
	  flag when it's required for linking
	- change -pthread -> -lpthread

Affected files ...

.. //depot/projects/trustedbsd/netauditd/Makefile#7 edit
.. //depot/projects/trustedbsd/netauditd/crypto.h#3 add
.. //depot/projects/trustedbsd/netauditd/crypto_client.c#1 add
.. //depot/projects/trustedbsd/netauditd/crypto_common.c#1 add

Differences ...

==== //depot/projects/trustedbsd/netauditd/Makefile#7 (text+ko) ====

@@ -1,7 +1,7 @@
 CC = gcc
-CFLAGS = -Wall -g -pthread
+CFLAGS = -Wall -g
 TARGETS = netauditd
-OBJ = conf.o lex.yy.o netauditd.o reader.o y.tab.o writer.o
+OBJ = conf.o crypto_common.o crypto_client.o lex.yy.o netauditd.o reader.o y.tab.o writer.o
 
 all: $(TARGETS)
 
@@ -16,7 +16,7 @@
 	$(CC) $(CFLAGS) -c lex.yy.c
 
 netauditd: $(OBJ)
-	$(CC) $(CFLAGS) -o $@ $(OBJ)
+	$(CC) $(CFLAGS) -o $@ $(OBJ) -lssl -lpthread
 
 y.tab.o: grammar.y
 	yacc -vd grammar.y



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808150058.m7F0wYjt082971>