regressions: Use -pthread instead of -lpthread.

Pointed out by Matt Johnson.
ck_pring
Samy Al Bahra 14 years ago
parent 303c7f01cf
commit 34ec9ced0a

@ -11,5 +11,5 @@ clean:
rm -rf *.dSYM *~ *.o $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-D_GNU_SOURCE -lpthread
CFLAGS+=-D_GNU_SOURCE -pthread

@ -23,4 +23,4 @@ clean:
rm -rf *.dSYM *~ *.o $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-D_GNU_SOURCE -lpthread -ggdb -O0
CFLAGS+=-D_GNU_SOURCE -pthread -ggdb -O0

@ -5,7 +5,7 @@ OBJECTS=latency
all: $(OBJECTS)
latency: latency.c
$(CC) $(CFLAGS) -o latency latency.c -lpthread
$(CC) $(CFLAGS) -o latency latency.c -pthread
clean:
rm -rf *.dSYM *~ *.o $(OBJECTS)

@ -5,7 +5,7 @@ OBJECTS=validate
all: $(OBJECTS)
validate: validate.c
$(CC) $(CFLAGS) -o validate validate.c -lpthread
$(CC) $(CFLAGS) -o validate validate.c -pthread
clean:
rm -rf *.dSYM *~ *.o $(OBJECTS)

@ -11,4 +11,4 @@ clean:
rm -rf *~ *.o $(OBJECTS) *.dSYM
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -11,4 +11,4 @@ clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -20,4 +20,4 @@ clean:
rm -rf *.dSYM *~ *.o $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -14,4 +14,4 @@ clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -20,4 +20,4 @@ clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE -ggdb
CFLAGS+=-pthread -D_GNU_SOURCE -ggdb

@ -15,4 +15,4 @@ clean:
rm -rf ck_pr_cas_64 ck_pr_fas_64 ck_pr_cas_64_2 *.dSYM
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE -lm
CFLAGS+=-pthread -D_GNU_SOURCE -lm

@ -14,4 +14,4 @@ clean:
rm -rf *~ *.o $(OBJECTS) *.dSYM
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -12,4 +12,4 @@ clean:
rm -rf *~ *.o $(OBJECTS) *.dSYM
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE -ggdb
CFLAGS+=-pthread -D_GNU_SOURCE -ggdb

@ -70,4 +70,4 @@ clean:
rm -rf *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-D_GNU_SOURCE -lpthread -lm
CFLAGS+=-D_GNU_SOURCE -pthread -lm

@ -35,4 +35,4 @@ clean:
ck_anderson test_and_set *.dSYM
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE -lm
CFLAGS+=-pthread -D_GNU_SOURCE -lm

@ -11,4 +11,4 @@ clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread -D_GNU_SOURCE
CFLAGS+=-pthread -D_GNU_SOURCE

@ -10,26 +10,26 @@ serial: serial.c
$(CC) $(CFLAGS) -o serial serial.c
mpnc_push mpmc_push upmc_push spinlock_push spinlock_eb_push: push.c
$(CC) -lpthread -DMPNC -D_GNU_SOURCE $(CFLAGS) -o mpnc_push push.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_push push.c
$(CC) -lpthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_push push.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_push push.c
$(CC) -lpthread -DSPINLOCK -DEB -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_push push.c
$(CC) -pthread -DMPNC -D_GNU_SOURCE $(CFLAGS) -o mpnc_push push.c
$(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_push push.c
$(CC) -pthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_push push.c
$(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_push push.c
$(CC) -pthread -DSPINLOCK -DEB -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_push push.c
mpmc_pop upmc_pop spinlock_pop spinlock_eb_pop: pop.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pop pop.c
$(CC) -lpthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_pop pop.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pop pop.c
$(CC) -lpthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pop pop.c
$(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pop pop.c
$(CC) -pthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_pop pop.c
$(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pop pop.c
$(CC) -pthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pop pop.c
mpmc_pair spinlock_pair spinlock_eb_pair pthreads_pair: pair.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pair pair.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pair pair.c
$(CC) -lpthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pair pair.c
$(CC) -lpthread -DPTHREADS -D_GNU_SOURCE $(CFLAGS) -o pthreads_pair pair.c
$(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pair pair.c
$(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pair pair.c
$(CC) -pthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pair pair.c
$(CC) -pthread -DPTHREADS -D_GNU_SOURCE $(CFLAGS) -o pthreads_pair pair.c
clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread
CFLAGS+=-pthread

Loading…
Cancel
Save