diff -Nurd -x'*~' hal-0.5.11.orig/configure hal-0.5.11/configure --- hal-0.5.11.orig/configure 2008-05-07 19:35:45.000000000 -0400 +++ hal-0.5.11/configure 2008-11-20 01:14:54.000000000 -0500 @@ -22433,11 +22433,6 @@ -#### gcc linker flags - -if test "x$GCC" = "xyes"; then - LDFLAGS="-Wl,--as-needed $LDFLAGS" -fi #### gcc warning flags @@ -24198,6 +24193,8 @@ case "$host" in *-*-solaris*) ;; +*-*-darwin*) + ;; *) pkg_failed=no diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-mount.c hal-0.5.11/tools/hal-storage-mount.c --- hal-0.5.11.orig/tools/hal-storage-mount.c 2008-05-07 19:24:23.000000000 -0400 +++ hal-0.5.11/tools/hal-storage-mount.c 2008-11-20 01:14:54.000000000 -0500 @@ -31,7 +31,7 @@ #include #include #include -#ifdef __FreeBSD__ +#if defined (__FreeBSD__) || defined(__APPLE__) #include #include #include @@ -53,6 +53,9 @@ #include #include "hal-storage-shared.h" +#ifdef __APPLE__ +#define __FreeBSD__ +#endif #ifdef __FreeBSD__ #define MOUNT "/sbin/mount" diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-shared.c hal-0.5.11/tools/hal-storage-shared.c --- hal-0.5.11.orig/tools/hal-storage-shared.c 2008-05-07 19:24:24.000000000 -0400 +++ hal-0.5.11/tools/hal-storage-shared.c 2008-11-20 01:14:54.000000000 -0500 @@ -31,7 +31,7 @@ #include #include #include -#ifdef __FreeBSD__ +#if defined (__FreeBSD__) || defined(__APPLE__) #include #include #include @@ -52,6 +52,9 @@ #include #include "hal-storage-shared.h" +#ifdef __APPLE__ +#define __FreeBSD__ +#endif #ifdef __FreeBSD__ struct mtab_handle diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-unmount.c hal-0.5.11/tools/hal-storage-unmount.c --- hal-0.5.11.orig/tools/hal-storage-unmount.c 2008-05-07 19:24:17.000000000 -0400 +++ hal-0.5.11/tools/hal-storage-unmount.c 2008-11-20 01:14:54.000000000 -0500 @@ -31,7 +31,7 @@ #include #include #include -#ifdef __FreeBSD__ +#if defined (__FreeBSD__) || defined(__APPLE__) #include #include #include @@ -52,6 +52,9 @@ #include #include "hal-storage-shared.h" +#ifdef __APPLE__ +#define __FreeBSD__ +#endif static void