vasi/pixz — Issue #4: linux build fixes
Author: yoshi314
Created: 2012-03-08 08:58:00+00:00
State: open

following modification allows to build pixz on linux. not tested at runtime yet. please consider extending Makefile with following modifications.

diff --git a/Makefile b/Makefile
index 48db5c7..470cc52 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),)
APPLE=1
endif

-LIBPREFIX = /Library/Fink/sl64 /opt/local
+LIBPREFIX = /usr /
ifdef APPLE
ifeq ($(CC),gcc)
LDFLAGS += -search_paths_first
@@ -26,7 +26,7 @@ all: $(PROGS)
$(COMPILE) $@ $<

$(PROGS): %: %.o $(COMMON)
- $(LD) $@ $^ -llzma -larchive
+ $(LD) $@ $^ -llzma -larchive -lpthread

clean:
rm -f *.o $(PROGS)