diff -r 5bf46cff18e3 src/glib.mk --- a/src/glib.mk Wed Apr 28 00:24:06 2010 +0200 +++ b/src/glib.mk Wed Apr 28 16:36:28 2010 +1000 @@ -28,9 +28,19 @@ # native build of libiconv (used by glib-genmarshal) cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,libiconv) cd '$(1).native/$(libiconv_SUBDIR)' && ./configure \ + --prefix='$(1).native/usr' \ --disable-shared \ --disable-nls - $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)' + $(MAKE) -C '$(1).native/$(libiconv_SUBDIR)' -j '$(JOBS)' install + + # native build of gettext (used by glib-compile-schemas) + # darwin and freebsd might lack libintl.h otherwise + cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,gettext) + cd '$(1).native/$(gettext_SUBDIR)/gettext-runtime' && ./configure \ + --prefix='$(1).native/usr' \ + --disable-shared \ + --with-included-gettext + $(MAKE) -C '$(1).native/$(gettext_SUBDIR)/gettext-runtime/intl' -j '$(JOBS)' install # native build for glib-genmarshal, without pkg-config, gettext and zlib cd '$(1).native' && ./configure \ @@ -42,8 +52,8 @@ --disable-fam \ --disable-xattr \ --with-libiconv=gnu \ - CPPFLAGS='-I$(1).native/$(libiconv_SUBDIR)/include' \ - LDFLAGS='-L$(1).native/$(libiconv_SUBDIR)/lib/.libs' + CPPFLAGS='-I$(1).native/usr/include' \ + LDFLAGS='-L$(1).native/usr/lib' $(SED) -i 's,#define G_ATOMIC.*,,' '$(1).native/config.h' $(MAKE) -C '$(1).native/glib' -j '$(JOBS)' $(MAKE) -C '$(1).native/gthread' -j '$(JOBS)'