Changed link libbrary from lpthread to pthread
This commit is contained in:
parent
a9e48502f0
commit
6e9f2aa859
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue