Commit 209afb9e0dc4f4ed21ed696047d4c72f8a942810
1 parent
a39437aa
Move determination of AIOLIBS until after all configure options have been
handled. By Carlos O'Donell. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2539 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
6 deletions
configure
@@ -159,12 +159,6 @@ if [ "$bsd" = "yes" ] ; then | @@ -159,12 +159,6 @@ if [ "$bsd" = "yes" ] ; then | ||
159 | fi | 159 | fi |
160 | fi | 160 | fi |
161 | 161 | ||
162 | -if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then | ||
163 | - AIOLIBS= | ||
164 | -else | ||
165 | - AIOLIBS="-lrt" | ||
166 | -fi | ||
167 | - | ||
168 | # find source path | 162 | # find source path |
169 | source_path=`dirname "$0"` | 163 | source_path=`dirname "$0"` |
170 | if [ -z "$source_path" ]; then | 164 | if [ -z "$source_path" ]; then |
@@ -260,6 +254,12 @@ for opt do | @@ -260,6 +254,12 @@ for opt do | ||
260 | esac | 254 | esac |
261 | done | 255 | done |
262 | 256 | ||
257 | +if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then | ||
258 | + AIOLIBS= | ||
259 | +else | ||
260 | + AIOLIBS="-lrt" | ||
261 | +fi | ||
262 | + | ||
263 | # default flags for all hosts | 263 | # default flags for all hosts |
264 | CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing" | 264 | CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing" |
265 | LDFLAGS="$LDFLAGS -g" | 265 | LDFLAGS="$LDFLAGS -g" |