aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-01-08 08:14:17 +0800
committerpav <pav@FreeBSD.org>2007-01-08 08:14:17 +0800
commitf3566592b5fd2e3dc3216c65ad1546b89ce044ad (patch)
tree71b3e9a2a6b250f938d84137fef18bf85701320b
parent82f3c8e784002823e168c10d13f666526e328a60 (diff)
downloadfreebsd-ports-gnome-f3566592b5fd2e3dc3216c65ad1546b89ce044ad.tar.gz
freebsd-ports-gnome-f3566592b5fd2e3dc3216c65ad1546b89ce044ad.tar.zst
freebsd-ports-gnome-f3566592b5fd2e3dc3216c65ad1546b89ce044ad.zip
- Fix build with gcc 4.x
- Force -O optimization level, problems reported with higher optimization levels PR: ports/107658 Submitted by: Fredrik Lindberg <fli@shapeshifter.se> (maintainer)
-rw-r--r--security/bioapi/Makefile4
-rw-r--r--security/bioapi/files/patch-addins-dal-mds-dal_classes.h11
2 files changed, 14 insertions, 1 deletions
diff --git a/security/bioapi/Makefile b/security/bioapi/Makefile
index 40da025fb5cf..1962c91a1059 100644
--- a/security/bioapi/Makefile
+++ b/security/bioapi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bioapi
PORTVERSION= 1.2.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= http://www.qrivy.net/~michael/blua/bioapi/ \
http://shapeshifter.se/pub/bioapi/
@@ -17,6 +17,8 @@ COMMENT= BioAPI library implementation
USE_BZIP2= yes
GNU_CONFIGURE= yes
+# Problems reported with higher optimization levels
+CONFIGURE_ENV=CFLAGS="${CFLAGS} -O"
CONFIGURE_ARGS= --localstatedir=/var/db/ --with-Qt-dir=no
INSTALLS_SHLIB= yes
diff --git a/security/bioapi/files/patch-addins-dal-mds-dal_classes.h b/security/bioapi/files/patch-addins-dal-mds-dal_classes.h
new file mode 100644
index 000000000000..999b04bb9b64
--- /dev/null
+++ b/security/bioapi/files/patch-addins-dal-mds-dal_classes.h
@@ -0,0 +1,11 @@
+--- addins/dl/mds/dal_classes.h.orig Fri Jun 10 02:35:44 2005
++++ addins/dl/mds/dal_classes.h Mon Jan 8 01:10:51 2007
+@@ -455,7 +455,7 @@
+ DAL_DATABASE_INFO_REF_PTR &prefDatabase,
+ PORT_MUTEX_HANDLE &Mutex);
+
+- CSSM_RETURN DAL_DATABASE_INFO_LIST::GetDBNamesAndParameters(
++ CSSM_RETURN GetDBNamesAndParameters(
+ CSSM_DL_DB_HANDLE DLDBHandle,
+ DAL_DB_OPEN_PARAM_PTR pParam);
+ };