Skip to content
Snippets Groups Projects
Commit 961441c5 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

properly set -D_REENTRANT and -lpthread for Linux in case ROOT was compiled

with thread support.


git-svn-id: http://root.cern.ch/svn/root/trunk@4577 27541ba8-7e3a-0410-8455-c3a389f83636
parent 8b48051a
Branches
Tags
No related merge requests found
...@@ -162,8 +162,8 @@ linuxrh42 | linuxrh51) ...@@ -162,8 +162,8 @@ linuxrh42 | linuxrh51)
;; ;;
linux) linux)
# Linux with egcs, gcc 2.9x, gcc 3.x # Linux with egcs, gcc 2.9x, gcc 3.x
auxcflags="-D_REENTRANT" auxcflags=
auxlibs="-lm -ldl -lpthread -rdynamic" auxlibs="-lm -ldl -rdynamic"
auxglibs=${auxlibs} auxglibs=${auxlibs}
;; ;;
linuxdeb | linuxsuse6) linuxdeb | linuxsuse6)
...@@ -291,6 +291,15 @@ case $arch in ...@@ -291,6 +291,15 @@ case $arch in
auxcflags="--exceptions $auxcflags" auxcflags="--exceptions $auxcflags"
auxldflags="--exceptions $auxldflags" auxldflags="--exceptions $auxldflags"
fi fi
;;
linux*)
for f in $features ; do
if test "x$f" = "xthread" ; then
auxcflags="-D_REENTRANT $auxcflags"
auxlibs="-lpthread $auxlibs"
fi
done
;;
esac esac
### end of machine and compiler dependent settings ### ### end of machine and compiler dependent settings ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment