Michael Geddes wrote:
> There's some weirdness in the Makefile I just don't understand (snippet 
> below).
>
> What on earth is this trying to achieve!? Doing a "make install clean" in 
> the 'Configure'  target seems a rather strange thing to be doing.
>
> I might just see if I can not compile this.
>
> //.ichael G
>
>
> --------------8<-----------------------
> define Build/Configure
>       mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
>       ( cd $(PKG_BUILD_DIR); CONFIG_SITE= \
>               ./configure \
>               --target=$(GNU_HOST_NAME) \
>               --host=$(GNU_HOST_NAME) \
>               --build=$(GNU_HOST_NAME) \
>               --prefix=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME) \
>               --disable-shared \
>               --enable-static \
>               --enable-debug=no \
>       );
>       $(MAKE) -C $(PKG_BUILD_DIR) install clean
>
>       $(call Build/Configure/Default, \
>               --enable-shared \
>               --enable-static \
>               --enable-debug=no \
>               , \
>               CPPFLAGS="$$$$CPPFLAGS 
> -I$(STAGING_DIR)/usr/lib/libiconv/include" \
>               CPPFLAGS="$$$$CPPFLAGS 
> -I$(STAGING_DIR)/usr/lib/libintl/include" \
>               LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
>               LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
>               glib_cv_stack_grows=no \
>               glib_cv_uscore=no \
>               
> ac_cv_path_GLIB_GENMARSHAL=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)/bin/glib-genmarshal
>  
> \
>       );
> endef
> -------------------------8<-----------------------------
>   
The build is done in 2 passes, it first builds glib for the host to have
a  'glib-genmarshal' utility working on the host system, and then it
builds glib for the target, telling configure to use the
'glib-genmarshal' that was just built before.

--
Nico


_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to