diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-04-06 18:17:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-04-06 18:17:50 +0000 |
commit | 0d26efed3a70b1c8d044dcc119e7810b4c852a75 (patch) | |
tree | 25c5e7715dc94508a3758c7011675d0b9490392f | |
parent | 768304767b039b5b0d7c3c4a45a4fce04e1d0f81 (diff) | |
download | buildroot-novena-0d26efed3a70b1c8d044dcc119e7810b4c852a75.tar.gz buildroot-novena-0d26efed3a70b1c8d044dcc119e7810b4c852a75.zip |
lord_apollyon writes:
When gcc 3.4.4 is configured for the toolchain, it subsequently fails to
compile udhcp-0.9.8/dhcpc.c complaining about an improper switch statement
syntax error:
dhcpc.c: In function `perform_renew':
dhcpc.c:136: error: label at end of compound statement
-rw-r--r-- | package/udhcp/udhcp-gcc_complains.patch | 11 | ||||
-rw-r--r-- | package/udhcp/udhcp.mk | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/package/udhcp/udhcp-gcc_complains.patch b/package/udhcp/udhcp-gcc_complains.patch new file mode 100644 index 000000000..3b4f9bc5c --- /dev/null +++ b/package/udhcp/udhcp-gcc_complains.patch @@ -0,0 +1,11 @@ +--- udhcp-0.9.8/dhcpc.c.orig 2005-11-24 01:41:48.000000000 +1000 ++++ udhcp-0.9.8/dhcpc.c 2005-11-24 01:44:16.000000000 +1000 +@@ -132,6 +132,8 @@ + state = INIT_SELECTING; + break; + case INIT_SELECTING: ++ default: ++ break; + } + + /* start things over */ diff --git a/package/udhcp/udhcp.mk b/package/udhcp/udhcp.mk index bb81f0b30..e1827be58 100644 --- a/package/udhcp/udhcp.mk +++ b/package/udhcp/udhcp.mk @@ -33,6 +33,7 @@ udhcp-source: $(DL_DIR)/$(UDHCP_SOURCE) $(UDHCP_DIR)/.unpacked: $(DL_DIR)/$(UDHCP_SOURCE) zcat $(DL_DIR)/$(UDHCP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(SED) 's/-Os -fomit-frame-pointer/$(TARGET_CFLAGS)/' $(UDHCP_DIR)/Makefile + toolchain/patch-kernel.sh $(UDHCP_DIR) package/udhcp/ udhcp\*.patch touch $(UDHCP_DIR)/.unpacked #$(UDHCP_DIR)/.unpacked: |