ports/102188: [PATCH] emulators/qemu: honor CFLAGS
Stanislav Sedov
ssedov at mbsd.msk.ru
Thu Aug 17 14:40:18 UTC 2006
>Number: 102188
>Category: ports
>Synopsis: [PATCH] emulators/qemu: honor CFLAGS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 17 14:40:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stanislav Sedov
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD
>Description:
- Respect CFLAGS
Copy of this message was sent to (nox at jelal.kn-bremen.de).
>How-To-Repeat:
>Fix:
--- qemu-0.8.2_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/emulators/qemu/Makefile /var/tmp/qemu/Makefile
--- /usr/ports/emulators/qemu/Makefile Mon Aug 7 22:10:26 2006
+++ /var/tmp/qemu/Makefile Thu Aug 17 18:29:06 2006
@@ -7,6 +7,7 @@
PORTNAME= qemu
PORTVERSION= 0.8.2
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.qemu.org/:release \
http://people.fruitsalad.org/nox/qemu/:snapshot \
@@ -39,9 +40,11 @@
USE_PERL5= yes
PATCH_STRIP= -p1
CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}
-MAKE_ENV+= BSD_MAKE=${MAKE}
+MAKE_ENV+= BSD_MAKE="${MAKE}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= qemu.1 qemu-img.1
ONLY_FOR_ARCHS= amd64 i386
+WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation
+
.if defined(WITH_KQEMU)
CONFIGURE_ARGS+= --enable-kqemu
.else
@@ -98,6 +101,14 @@
.if defined(WITH_RTL8139_TIMER)
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/rtl8139-re-patch
.endif
+ @${REINPLACE_CMD} -E \
+ -e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing," \
+ -e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
+ ${WRKSRC}/Makefile.target
+ @${REINPLACE_CMD} -E \
+ -e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing -I.," \
+ -e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
+ ${WRKSRC}/Makefile
post-install:
@${CAT} ${PKGMESSAGE}
diff -ruN --exclude=CVS /usr/ports/emulators/qemu/files/patch-libmath /var/tmp/qemu/files/patch-libmath
--- /usr/ports/emulators/qemu/files/patch-libmath Sun Apr 16 08:38:02 2006
+++ /var/tmp/qemu/files/patch-libmath Thu Aug 17 17:54:32 2006
@@ -24,7 +24,7 @@
+
+OBJS= ${SRCS:R:S/$/.o/}
+
-+CFLAGS= -O2 -Wall -I.
++CFLAGS+= -I.
+
+all: libmath.a
+
--- qemu-0.8.2_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list