--- 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();
--- /dev/null
+--- 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