summaryrefslogtreecommitdiff
path: root/package/glib
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-01-02 03:19:44 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-02 03:20:28 -0600
commitf46a0347e11a1aecc484ee208bd82b0adc7019ff (patch)
tree579ae00d27b333c1601e379a20ee11ea5b4e8958 /package/glib
parent51a9da2ad4d5b913d406853cef027b4af186cd20 (diff)
finetune
Diffstat (limited to 'package/glib')
-rw-r--r--package/glib/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 4c267e93a..77d6ab3ca 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -27,7 +27,6 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
-#TARGET_CPPFLAGS+= -D_GNU_SOURCE
CONFIGURE_ARGS+= --disable-mem-pools \
--disable-rebuilds \
--disable-fam \
@@ -40,6 +39,9 @@ CONFIGURE_ENV+= glib_cv_long_long_format=ll \
ac_cv_func_posix_getgrgid_r=yes
HOST_STYLE:= auto
+ifneq ($(OStype),CYGWIN)
+HOST_CFLAGS+= -fPIC
+endif
ifneq ($(OStype),Darwin)
HOST_CONFIGURE_ARGS+= --with-libiconv=no
endif
@@ -48,6 +50,10 @@ HOST_CONFIGURE_ARGS+= --disable-fam \
--disable-shared \
--disable-compile-warnings
+hostpost-install:
+ $(CP) $(STAGING_HOST_DIR)/usr/lib/glib-2.0/include/glibconfig.h \
+ $(STAGING_HOST_DIR)/usr/include/glib-2.0/
+
glib-install:
$(INSTALL_DIR) $(IDIR_GLIB)/usr/lib
$(CP) $(WRKINST)/usr/lib/libgio*.so* $(IDIR_GLIB)/usr/lib