From 3880b028fcf6160f7e305aa769ca4ae3ab3e43c8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 28 Dec 2012 16:38:41 +0000 Subject: [PATCH] contrib/uhttpd: add patch to fix linking on recent distros, refresh environment patch --- contrib/uhttpd/patches/001-pass-env.patch | 4 ++-- contrib/uhttpd/patches/002-link-order.patch | 11 +++++++++++ contrib/uhttpd/patches/series | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 contrib/uhttpd/patches/002-link-order.patch diff --git a/contrib/uhttpd/patches/001-pass-env.patch b/contrib/uhttpd/patches/001-pass-env.patch index b69ff1765..ab607dbf2 100644 --- a/contrib/uhttpd/patches/001-pass-env.patch +++ b/contrib/uhttpd/patches/001-pass-env.patch @@ -1,7 +1,7 @@ --- a/uhttpd-cgi.c +++ b/uhttpd-cgi.c -@@ -204,7 +204,7 @@ void uh_cgi_request(struct client *cl, s - (pi->stat.st_mode & S_IXOTH) +@@ -216,7 +216,7 @@ void uh_cgi_request( + (pi->stat.st_mode & S_IXOTH)) || (ip != NULL) ) { /* build environment */ - clearenv(); diff --git a/contrib/uhttpd/patches/002-link-order.patch b/contrib/uhttpd/patches/002-link-order.patch new file mode 100644 index 000000000..8bdd3353e --- /dev/null +++ b/contrib/uhttpd/patches/002-link-order.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -70,7 +70,7 @@ endif + $(CC) $(CFLAGS) -c -o $@ $< + + compile: $(OBJ) $(TLSLIB) $(LUALIB) +- $(CC) -o uhttpd $(LDFLAGS) $(LIB) $(OBJ) ++ $(CC) -o uhttpd $(LDFLAGS) $(OBJ) $(LIB) + + clean: + rm -f *.o *.so uhttpd diff --git a/contrib/uhttpd/patches/series b/contrib/uhttpd/patches/series index dc852df8b..8a1834ecf 100644 --- a/contrib/uhttpd/patches/series +++ b/contrib/uhttpd/patches/series @@ -1 +1,2 @@ 001-pass-env.patch +002-link-order.patch -- 2.11.0