Changed link libbrary from lpthread to pthread

This commit is contained in:
Alvin Moore 2019-08-02 10:04:36 -07:00
parent a9e48502f0
commit 6e9f2aa859
2 changed files with 4 additions and 4 deletions

View File

@ -22,15 +22,15 @@ case $1 in
if [[ "${OPTIONS}" == *"-static-libstdc++"* ]]; then
staticlibs=()
staticpaths=''
staticpaths=''
if [[ "${CC}" == *"gcc"* ]]; then
staticlibs+=('libstdc++.a')
elif [[ "${CXX}" == *"clang++"* ]]; then
staticlibs+=('libc++.a' 'libc++abi.a')
fi
for staticlib in "${staticlibs[@]}"; do
staticpaths+="$("${CC}" -print-file-name="${staticlib}") "
done
staticpaths+="$("${CC}" -print-file-name="${staticlib}") "
done
OPTIONS=$( echo $OPTIONS | sed -e s,-static-libstdc\+\+,, -e s,\$,\ "${staticpaths}"\ -lm, )
fi

View File

@ -24,7 +24,7 @@
fdbmonitor_CFLAGS := -I.
ifeq ($(PLATFORM),linux)
fdbmonitor_LDFLAGS := -static-libstdc++ -static-libgcc -lpthread -lrt
fdbmonitor_LDFLAGS := -static-libstdc++ -static-libgcc -pthread -lrt
else ifeq ($(PLATFORM),osx)
fdbmonitor_LDFLAGS := -lc++
endif