--- Audio-TagLib-1.43/Makefile.PL	2007-01-16 19:49:27.000000000 -0700
+++ Audio-TagLib-1.43-OSX/Makefile.PL	2007-01-17 00:18:47.000000000 -0700
@@ -18,6 +18,9 @@
 	Carp::croak("Please install taglib ver 1.4.*") unless 
 		$libver =~ m/^1\.4/io;
 	our $libs = qx(taglib-config --libs);
+        if ($^O eq 'darwin') {
+            $libs = '-L/System/Library/Perl/lib/5.8 -lperl -liconv ' . qx(taglib-config --libs);
+        }
 	our $inc  = ' -I/usr/include -I./include -I. '. qx(taglib-config --cflags);
 }
 
@@ -36,7 +39,7 @@
     LDDLFLAGS         => $^O eq 'darwin' ? "-dynamiclib $libs" : "-shared ". $libs,
     XSOPT             => '-C++ -hiertype',
     LIBS              => $libs, 
-    DEFINE            => $^O eq 'freebsd' ? '-D_BSD_ICONV -DNO_DOXYGEN' : '-DNO_DOXYGEN', # e.g., '-DHAVE_SOMETHING'
+    DEFINE            => ($^O eq 'freebsd' || $^O eq 'darwin') ? '-D_BSD_ICONV -DNO_DOXYGEN' : '-DNO_DOXYGEN', # e.g., '-DHAVE_SOMETHING'
     INC               => $inc, # e.g., '-I. -I/usr/include/other'
 	# Un-comment this if you add C files to link with later:
     # OBJECT            => '$(O_FILES)', # link all the C files too
