mirror of
https://github.com/vasi/pixz
synced 2024-11-18 15:26:46 +00:00
Add -lpthreads to handle non-explicit linking
This commit is contained in:
parent
ee8a3404f9
commit
c5f99bf4b4
7
Makefile
7
Makefile
@ -11,7 +11,10 @@ endif
|
|||||||
OPT = -g -O0
|
OPT = -g -O0
|
||||||
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=gnu99 \
|
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=gnu99 \
|
||||||
-Wall -Wno-unknown-pragmas
|
-Wall -Wno-unknown-pragmas
|
||||||
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
|
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
|
||||||
|
|
||||||
|
THREADS = -lpthread
|
||||||
|
LIBADD = $(THREADS) -llzma -larchive
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
COMPILE = $(CC) $(CFLAGS) -c -o
|
COMPILE = $(CC) $(CFLAGS) -c -o
|
||||||
@ -26,7 +29,7 @@ all: $(PROGS)
|
|||||||
$(COMPILE) $@ $<
|
$(COMPILE) $@ $<
|
||||||
|
|
||||||
$(PROGS): %: %.o $(COMMON)
|
$(PROGS): %: %.o $(COMMON)
|
||||||
$(LD) $@ $^ -llzma -larchive
|
$(LD) $@ $^ $(LIBADD)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(PROGS)
|
rm -f *.o $(PROGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user