It looks like your version of ld doesn't use the options -lz. Go through the readme and release notes (if there were any) for any specific ld requirements. You may need a different version. If you don't see anything there, try applying the latest version of ld. Finally, you could try finding the line that uses ld -lz in the Makefile and removing the -lz option from the ld command. Be careful here: ld is probably set as a variable so you will have to find the variable then the -lz or the entire 'ld -lz' may be a variable that you can just change to 'ld'. Also, you will want to make sure that the -lz options aren't doing anything important for the make program. Hopefully the Makefile will have some comments around the ld command or variable setting. If not, you could just try it. Worse case is that you will have to run make clean and the start again with configure. Typically -l is used to search library paths and is probably important. -z has many uses and may be combined with -l to handle the results. -z can also be left off in many of its uses. You shouls view your ld man page and see what options are available (if -l is not there, then you may replace it with the option that searches library paths in your version ofld and be OK). If -l and -z are both there then this error is a little misleading. You still want to find where in the Makefile this command runs. Perhaps you can analyze the Makefile a little bit and find something else near the execution of theld command or the syntax of the ld command is causing a problem.
Good luck.