]> granicus.if.org Git - graphviz/commitdiff
fixing leopard prebuild to work as before - am unable to upgrade glib
authorellson <devnull@localhost>
Wed, 12 Jan 2011 21:26:19 +0000 (21:26 +0000)
committerellson <devnull@localhost>
Wed, 12 Jan 2011 21:26:19 +0000 (21:26 +0000)
macosx/prebuild/Makefile.leopard
macosx/prebuild/glib.leopard.patch [new file with mode: 0644]

index 19e5cc16d8041aa211e41e9690577bbbcbf7dbf5..2799fef570f608ec5ec0eb7ec1330b93e30ff235 100644 (file)
@@ -432,7 +432,7 @@ $(GLIB_DIR)/configure: | $(GLIB_DIR).tar.gz
        @echo
        @echo CONFIGURING GLIB...
        @echo
-       $(TAR) xzf $| && (cd $(GLIB_DIR); patch -p1 <../glib.patch)
+       $(TAR) xzf $| && (cd $(GLIB_DIR); patch -p1 <../glib.leopard.patch)
        
 $(GLIB_DIR).tar.gz:
        @echo
diff --git a/macosx/prebuild/glib.leopard.patch b/macosx/prebuild/glib.leopard.patch
new file mode 100644 (file)
index 0000000..7de4061
--- /dev/null
@@ -0,0 +1,18 @@
+diff -ru glib-2.16.3/glib/gconvert.c glib-2.16.3.patched/glib/gconvert.c
+--- glib-2.16.3/glib/gconvert.c        2008-04-08 11:47:29.000000000 +0800
++++ glib-2.16.3.patched/glib/gconvert.c        2008-04-24 14:41:44.000000000 +0800
+@@ -48,12 +48,14 @@
+ #include "glibintl.h"
++#if !defined(__APPLE_CC__) || !defined(__LP64__)
+ #if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H)
+ #error GNU libiconv in use but included iconv.h not from libiconv
+ #endif
+ #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)
+ #error GNU libiconv not in use but included iconv.h is from libiconv
+ #endif
++#endif
+ #include "galias.h"
+