diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-09-13 15:49:05 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-14 14:06:19 +0000 |
commit | a4e8938c1c5a2e6c89b02050d41654bc2af247e3 (patch) | |
tree | 1191b1c3a5045bec0688ea094ce24d240c5339bd /main/xen/qemu_uclibc_configure.patch | |
parent | 5d10cb782ac6836c6f9d20a536b78260e47c7232 (diff) | |
download | aports-a4e8938c1c5a2e6c89b02050d41654bc2af247e3.tar.bz2 aports-a4e8938c1c5a2e6c89b02050d41654bc2af247e3.tar.xz |
xen: update to 4.2.0-rc4
Next version (4.2) is scheduled to be released very soon
if everything goes ok. This is a very close rc,
which we can start testing until 4.2 comes out.
Diffstat (limited to 'main/xen/qemu_uclibc_configure.patch')
-rw-r--r-- | main/xen/qemu_uclibc_configure.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/xen/qemu_uclibc_configure.patch b/main/xen/qemu_uclibc_configure.patch new file mode 100644 index 0000000000..bef93c14d9 --- /dev/null +++ b/main/xen/qemu_uclibc_configure.patch @@ -0,0 +1,48 @@ +--- a/tools/qemu-xen-dir/configure ++++ b/tools/qemu-xen-dir/configure +@@ -2457,19 +2457,44 @@ EOF + fi + fi + ++########################################## ++# Do we need libm ++cat > $TMPC << EOF ++#include <math.h> ++int main(void) { return isnan(sin(0.0)); } ++EOF ++if compile_prog "" "" ; then ++ : ++elif compile_prog "" "-lm" ; then ++ LIBS="-lm $LIBS" ++ libs_qga="-lm $libs_qga" ++else ++ echo ++ echo "Error: libm check failed" ++ echo ++ exit 1 ++fi + + ########################################## + # Do we need librt ++# uClibc provides 2 versions of clock_gettime(), one with realtime ++# support and one without. This means that the clock_gettime() don't ++# need -lrt. We still need it for timer_create() so we check for this ++# function in addition. + cat > $TMPC <<EOF + #include <signal.h> + #include <time.h> +-int main(void) { clockid_t id; return clock_gettime(id, NULL); } ++int main(void) { ++ timer_create(CLOCK_REALTIME, NULL, NULL); ++ return clock_gettime(CLOCK_REALTIME, NULL); ++} + EOF + + if compile_prog "" "" ; then + : + elif compile_prog "" "-lrt" ; then + LIBS="-lrt $LIBS" ++ libs_qga="-lrt $libs_qga" + fi + + if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \ |