...
make -f makefile.unix -e PIE=1 USE_UPNP=-
Then it should compile without issues.
Except that the PIE=1 directive reveals that somehow leveldb isn't compiled with -fPIC by default and causes a link failure. I found I needed to explicitly add a -fPIC to the OPTIONS in leveldb's Makefile;
-OPT ?= -O2 -DNDEBUG # (A) Production use (optimized mode)
+OPT ?= -O2 -DNDEBUG -fPIC # (A) Production use (optimized mode)
HTH
Cheers
Graham