From 0cf5b82ce901551907967011695570afc87cf123 Mon Sep 17 00:00:00 2001 From: wenxueliu Date: Thu, 23 Feb 2017 10:30:48 +0800 Subject: [PATCH] fix compile bug in CentOS7 In Ubuntu, there is static library of libpthread.a librt.a libc.a in /usr/lib/x86_64-linux-gnu/ default, But in CentOS, there is not static library of libpthread.a librt.a libc.a default, you must specific it with -L /usr/lib/x86_64-redhat-linux6E/lib64/ which contains the static library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58a2cf5..dfdf8cf 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ # limitations under the License. # CFLAGS=-std=gnu99 -g -O2 -fomit-frame-pointer -fno-unroll-loops -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -W -Wno-unused-parameter -Werror -pthread -LDFLAGS=-g -O2 -static -pthread +LDFLAGS=-g -O2 -pthread LDLIBS=-lrt EXE=multichase fairness pingpong