Browse Source

fix compile on Darwin

Waldemar Brodkorb 9 years ago
parent
commit
cfab66bf3a
2 changed files with 5 additions and 1 deletions
  1. 4 1
      package/glib/Makefile
  2. 1 0
      package/python2/Makefile

+ 4 - 1
package/glib/Makefile

@@ -40,9 +40,12 @@ CONFIGURE_ENV+=		glib_cv_long_long_format=ll \
 			ac_cv_func_posix_getgrgid_r=yes
 
 HOST_STYLE:=		auto
+ifneq ($(OStype),Darwin)
+HOST_CONFIGURE_ARGS+=	--with-libiconv=no
+endif
 HOST_CONFIGURE_ARGS+=	--disable-fam \
 			--enable-static \
-			--with-libiconv=no \
+			--disable-shared \
 			--disable-compile-warnings
 
 glib-install:

+ 1 - 0
package/python2/Makefile

@@ -98,6 +98,7 @@ CONFIGURE_ARGS:=	--with-threads \
 			--with-system-ffi \
 			--without-cxx-main
 
+HOST_CONFIGURE_ENV+=	MACOSX_DEPLOYMENT_TARGET=10.9
 HOST_CONFIGURE_ARGS+=	--with-threads \
 			--disable-ipv6 \
 			--disable-shared \