inikep / lzbench

lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors
885 stars 179 forks source link

build error on Suse 12.2 #42

Closed xch027 closed 4 years ago

xch027 commented 6 years ago

Hi, I have built lzbench 1.7.2 on SUSE Linux Enterprise Server 12 (x86_64). Unfortunately it fails due to a lib link error: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lrt /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpthread /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lm /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lc

I have changed the Makefile, removed "LDFLAGS += -lrt -static" line 54 and "LDFLAGS += -lpthread" line 56 since the logic says if the system is not Darwin. It is a static lib link problem. This might be an issue.

BR, Xiao

inikep commented 6 years ago

Hi, did your fixes solved the issue?

xch027 commented 6 years ago

Yes, it works.