fix include path for glib in nocatsplash
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Apr 2005 13:14:29 +0000 (13:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Apr 2005 13:14:29 +0000 (13:14 +0000)
SVN-Revision: 555

openwrt/package/nocatsplash/Makefile

index d5d6b36535878e299c864767853506fb5a7f3eb0..af79e673689ed1d050ee5fd5d6f61c8878c10b54 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"