On Tue, 2010-09-28 at 14:43 +0200, Roberto Riggio wrote: 
> On 09/27/2010 11:14 PM, Michael Büsch wrote:
> >
> > uclibc does not support the clock_xxx functions. The kernel implements
> > them, however. You might want to use a wrapper in your application.
> > Take a look at this:
> > http://bu3sch.de/gitweb?p=pwrtray.git;a=blob;f=backend/timer.c;hb=HEAD#l30
> > (see the #defines and the syscall() stubs below)
> Well, the package that I'm trying to compile is not written by me. Its

You can add a patch.

> configure script can handle situation where the clock_gettime functions
> are not defined, however for some reasons the configure actually find
> these functions.

Maybe it searches on the host.

> (cd $(PKG_BUILD_DIR); \
>          rm -rf config.{cache,status} ; \
>          $(TARGET_CONFIGURE_OPTS) \
>          CXXFLAGS="-static -O2 -MD" \
>          CFLAGS="-static -MD" \
>          CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
>          LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
>          ./configure \
>              --prefix=/usr \
>              --target=$(GNU_TARGET_NAME) \
>              --host=$(GNU_TARGET_NAME) \
>              --build=$(GNU_HOST_NAME) \
>              --enable-tools=mixed \
>              --enable-userlevel \
>              --enable-wifi \
>              --enable-wing \
>              --disable-linuxmodule \
>      );
> 
> 
> and then:
> 
> define Build/Compile
>      $(MAKE) -C $(PKG_BUILD_DIR) \
>          MINDRIVER=$(PKG_NAME) \
>          DESTDIR="$(PKG_INSTALL_DIR)" \
>          all install
> endef

I think you should use the default configure and build rules
and just modify the buildflags CONFIGURE_VARS, CONFIGURE_ARGS, MAKE_...

-- 
Greetings Michael.

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to