Skip to content
Permalink
Browse files

Warn that pthreads mode doesn't work and disable by default

  • Loading branch information...
jbruchon committed Sep 1, 2015
1 parent 3357327 commit 693b333778c187ab407311dde1f333579e249791
Showing with 7 additions and 7 deletions.
  1. +4 −4 Makefile
  2. +3 −3 README
@@ -1,9 +1,9 @@
CC=gcc
AR=ar
CFLAGS=-O3 -ftree-vectorize -fgcse-las -flto -ffat-lto-objects
#CFLAGS=-O3 -ftree-vectorize -fgcse-las -flto -ffat-lto-objects
# Try these if the compiler complains or you need to debug
#CFLAGS=-O3 -g
#CFLAGS=-Og -g3
CFLAGS=-Og -g3
BUILD_CFLAGS = -std=gnu99 -I. -D_FILE_OFFSET_BITS=64 -fstrict-aliasing -pipe
BUILD_CFLAGS += -Wall -Wextra -Wcast-align -Wstrict-aliasing -pedantic -Wstrict-overflow -Wno-unused-parameter
LDFLAGS=-L.
@@ -19,8 +19,8 @@ datarootdir=${prefix}/share
datadir=${datarootdir}
sysconfdir=${prefix}/etc

# Use POSIX threads by default, but allow the user to override them
ifndef NOTHREADS
# Use POSIX threads if the user specifically requests it
ifdef THREADED
LDFLAGS += -lpthread
BUILD_CFLAGS += -DTHREADED
endif
6 README
@@ -30,10 +30,10 @@ Compression methods used by this program include:
performed on otherwise incompressible data to see if it can be arranged
differently to produce a compressible pattern.

The included compression utility uses POSIX threads by default. If you want
to use a smaller, much simpler, and slower non-threaded version, tell make:
The included compression utility can use POSIX threads. If you want to try
this out (WARNING: 2015-09-01: currently does not work properly) type:

make NOTHREADS=1
make THREADED=1

You can also use DEBUG=1 to turn on some very annoying debugging messages.

0 comments on commit 693b333

Please sign in to comment.
You can’t perform that action at this time.