aboutsummaryrefslogtreecommitdiffstats
path: root/main/xe-guest-utilities/fix_cflags.patch
diff options
context:
space:
mode:
authorCedric Schieli <cschieli@gmail.com>2010-03-21 12:32:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-31 08:31:54 +0000
commit29027806d47fb26652308bb1265765a8db82c76f (patch)
treed6532423c12c4a6fa651e387cddc50d32e2c21e3 /main/xe-guest-utilities/fix_cflags.patch
parent95e8811c0c11689b0a75ab12313dc5c45d0204b9 (diff)
downloadaports-29027806d47fb26652308bb1265765a8db82c76f.tar.bz2
aports-29027806d47fb26652308bb1265765a8db82c76f.tar.xz
main/xe-guest-utilities: new aport
Signed-off-by: Cedric Schieli <cschieli@gmail.com>
Diffstat (limited to 'main/xe-guest-utilities/fix_cflags.patch')
-rw-r--r--main/xe-guest-utilities/fix_cflags.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/xe-guest-utilities/fix_cflags.patch b/main/xe-guest-utilities/fix_cflags.patch
new file mode 100644
index 0000000000..866fa29fd3
--- /dev/null
+++ b/main/xe-guest-utilities/fix_cflags.patch
@@ -0,0 +1,43 @@
+--- xe-guest-utilities-5.5.0.orig/uclibc-sources/Config.mk
++++ xe-guest-utilities-5.5.0/uclibc-sources/Config.mk
+@@ -70,7 +70,6 @@
+ export XEN_ROOT
+ endef
+
+-CFLAGS += -g
+
+ CFLAGS += -fno-strict-aliasing
+
+--- xe-guest-utilities-5.5.0.orig/uclibc-sources/config/StdGNU.mk
++++ xe-guest-utilities-5.5.0/uclibc-sources/config/StdGNU.mk
+@@ -44,7 +44,6 @@
+ SHLIB_CFLAGS = -shared
+
+ ifneq ($(debug),y)
+-CFLAGS += -O2 -fomit-frame-pointer
+ else
+ # Less than -O1 produces bad code and large stack frames
+ CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
+--- xe-guest-utilities-5.5.0.orig/uclibc-sources/config/x86_32.mk
++++ xe-guest-utilities-5.5.0/uclibc-sources/config/x86_32.mk
+@@ -7,7 +7,6 @@
+ CONFIG_XCUTILS := y
+ CONFIG_IOEMU := n
+
+-CFLAGS += -m32 -march=i686
+
+ # Use only if calling $(LD) directly.
+ LDFLAGS_DIRECT_OpenBSD = _obsd
+--- xe-guest-utilities-5.5.0.orig/uclibc-sources/tools/Rules.mk
++++ xe-guest-utilities-5.5.0/uclibc-sources/tools/Rules.mk
+@@ -27,9 +27,7 @@
+ CFLAGS += -D__XEN_TOOLS__
+
+ # Enable implicit LFS support *and* explicit LFS names.
+-CFLAGS += $(shell getconf LFS_CFLAGS)
+-CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+-LDFLAGS += $(shell getconf LFS_LDFLAGS)
++CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+
+ # 32-bit x86 does not perform well with -ve segment accesses on Xen.
+ CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)