fix include path for glib in nocatsplash
[openwrt.git] / openwrt / package / nocatsplash / Makefile
index d5d6b36..af79e67 100644 (file)
@@ -44,10 +44,13 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.unpacked
        );
        touch $(PKG_BUILD_DIR)/.configured
 
+GLIB_CFLAGS :=-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include
+
 $(PKG_BUILD_DIR)/src/splashd: $(PKG_BUILD_DIR)/.configured
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC=$(TARGET_CC) \
-               GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include" \
+               GLIB_CFLAGS="$(GLIB_CFLAGS)" \
+               AM_CFLAGS="$(TARGET_CFLAGS) $(GLIB_CFLAGS)" \
                GLIB_LIBS="-L$(STAGING_DIR)/usr/lib -lglib" \
                LIBS="-L$(STAGING_DIR)/usr/lib -lglib"
 
This page took 0.0195 seconds and 4 git commands to generate.