freebsd-ports/net/spread4/files/patch-FreeBSD_makefile
SADA Kenji 39164a1693 New port: net/spread
WWW: http://www.spread.org

PR:		ports/28025
Submitted by:	Anders Nordby <anders@fix.no>
2001-10-25 14:36:41 +00:00

37 lines
1.0 KiB
Plaintext

--- FreeBSD_makefile.orig Mon Oct 2 16:09:34 2000
+++ FreeBSD_makefile Mon Jun 11 02:10:13 2001
@@ -1,4 +1,3 @@
-CC=gcc
MAKEFILE=FreeBSD_makefile
YACC = bison -y
LEX = flex
@@ -8,8 +7,8 @@
#SRCDIRS= dir1 dir2
#INCL=$(SRCDIRS:%=-I%)
#CFLAGS = -O does not always work on BSDI pc
-CFLAGS = -ansi -c -Wall -O3
-TCFLAGS = $(CFLAGS) -pthread
+CFLAGS+= -ansi -c
+TCFLAGS = $(CFLAGS) $(PTHREAD_LIBS)
COBJS = lex.yy.o y.tab.o configuration.o skiplist.o
OBJS = alarm.o events.o memory.o membership.o data_link.o network.o status.o log.o flow_control.o message.o
@@ -28,7 +27,7 @@
$(CC) -o user user.o libsp.a
tuser : user.to libtsp.a
- $(CC) -pthread -o tuser user.to libtsp.a
+ $(CC) $(PTHREAD_LIBS) -o tuser user.to libtsp.a
simple_user : simple_user.o libsp.a
$(CC) -o simple_user simple_user.o libsp.a
@@ -64,7 +63,7 @@
$(CC) $(CFLAGS) $*.c
.c.to:
- $(CC) $(TCFLAGS) -D_THREAD_SAFE -D_REENTRANT $*.c -o $*.to
+ $(CC) $(TCFLAGS) $(PTHREAD_CFLAGS) -D_REENTRANT $*.c -o $*.to
depend:
cp $(MAKEFILE) $(MAKEFILE).bak \