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 configure script can handle situation where the clock_gettime functions are not defined, however for some reasons the configure actually find these functions. This is the relevant fragment of my make file: (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 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel