Sfoglia il codice sorgente

gamin: fix build

Dependencies were wrong, and it didn't build without largefile support.
Peter Korsgaard 16 anni fa
parent
commit
8186a3edee
2 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 1 0
      package/gamin/Config.in
  2. 6 2
      package/gamin/gamin.mk

+ 1 - 0
package/gamin/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_GAMIN
 	bool "gamin"
+	select BR2_PACKAGE_LIBGLIB2
 	help
 	  the File Alteration Monitor
 

+ 6 - 2
package/gamin/gamin.mk

@@ -10,13 +10,17 @@ GAMIN_AUTORECONF = NO
 GAMIN_INSTALL_STAGING = YES
 GAMIN_INSTALL_TARGET = YES
 
-GAMIN_CONF_OPT = --program-prefix=""
+GAMIN_CONF_OPT = --program-prefix="" --disable-debug
 
 GAMIN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
 
 GAMIN_CONF_ENV = have_abstract_sockets=no
 
-GAMIN_DEPENDENCIES = uclibc libgtk2
+ifneq ($(BR2_LARGEFILE),y)
+GAMIN_CONF_ENV += CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE"
+endif
+
+GAMIN_DEPENDENCIES = uclibc libglib2
 
 $(eval $(call AUTOTARGETS,package,gamin))