--- /dev/null
+diff -urN cgicc-3.2.7-0rig//demo/dns.cpp cgicc-3.2.7/demo/dns.cpp
+--- cgicc-3.2.7-0rig//demo/dns.cpp 2009-01-21 00:24:13.000000000 +0100
++++ cgicc-3.2.7/demo/dns.cpp 2009-01-21 00:24:30.000000000 +0100
+@@ -34,6 +34,7 @@
+ #include <vector>
+ #include <stdexcept>
+ #include <iostream>
++#include <string.h>
+
+ #include "cgicc/CgiDefs.h"
+ #include "cgicc/Cgicc.h"
+
$(LIBCGICC_DIR)/.unpacked: $(DL_DIR)/$(LIBCGICC_SOURCE)
$(LIBCGICC_CAT) $(DL_DIR)/$(LIBCGICC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(LIBCGICC_DIR)/.unpacked
+ toolchain/patch-kernel.sh $(LIBCGICC_DIR) package/libcgicc cgicc\*.patch
+ touch $@
$(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked
(cd $(LIBCGICC_DIR); rm -f config.cache; \
--mandir=/usr/man \
--infodir=/usr/info \
)
- touch $(LIBCGICC_DIR)/.configured
+ touch $@
$(LIBCGICC_DIR)/.compiled: $(LIBCGICC_DIR)/.configured
$(MAKE) -C $(LIBCGICC_DIR)
- touch $(LIBCGICC_DIR)/.compiled
+ touch $@
$(STAGING_DIR)/lib/libcgicc.so: $(LIBCGICC_DIR)/.compiled
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGICC_DIR) install
libcgicc: uclibc $(TARGET_DIR)/usr/lib/libcgicc.so
+libcgicc-unpacked: $(LIBCGICC_DIR)/.unpacked
+
libcgicc-clean:
-$(MAKE) -C $(LIBCGICC_DIR) clean