mirror of
https://github.com/vasi/pixz
synced 2024-11-16 21:26:04 +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
|
||||
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=gnu99 \
|
||||
-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
|
||||
COMPILE = $(CC) $(CFLAGS) -c -o
|
||||
@ -26,7 +29,7 @@ all: $(PROGS)
|
||||
$(COMPILE) $@ $<
|
||||
|
||||
$(PROGS): %: %.o $(COMMON)
|
||||
$(LD) $@ $^ -llzma -larchive
|
||||
$(LD) $@ $^ $(LIBADD)
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROGS)
|
||||
|
Loading…
Reference in New Issue
Block a user