- don't build with pie, it gives empty unresolved symbols on powerpc

ok todd@
This commit is contained in:
ajacoutot 2009-01-06 10:16:52 +00:00
parent 462ee639ce
commit 1bc053e624
2 changed files with 28 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.20 2008/12/09 14:14:45 jasper Exp $
# $OpenBSD: Makefile,v 1.21 2009/01/06 10:16:52 ajacoutot Exp $
COMMENT= message bus system
DISTNAME= dbus-1.2.6
PKGNAME= ${DISTNAME}p0
SHARED_LIBS+= dbus-1 7.0
CATEGORIES= x11

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-configure,v 1.1 2009/01/06 10:16:52 ajacoutot Exp $
Do not use -fPIE, it gives empty unresolved symbols on powerpc.
--- configure.orig Mon Jan 5 11:51:16 2009
+++ configure Mon Jan 5 11:51:24 2009
@@ -20974,19 +20974,6 @@ if test "x$GCC" = "xyes"; then
;;
esac
- case " $CFLAGS " in
- *[\ \ ]-fPIE[\ \ ]*) ;;
- *) if cc_supports_flag -fPIE; then
- PIE_CFLAGS="-fPIE"
- if ld_supports_flag -z,relro; then
- PIE_LDFLAGS="-pie -Wl,-z,relro"
- else
- PIE_LDFLAGS="-pie"
- fi
- fi
- ;;
- esac
-
if test "x$enable_ansi" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-ansi[\ \ ]*) ;;