--- a/src/makefiles/Makefile.linux
+++ b/src/makefiles/Makefile.linux
@@ -5,7 +5,7 @@ export_dynamic = -Wl,-E
 rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags
 DLSUFFIX = .so
 
-ifeq "$(findstring sparc,$(host_cpu))" "sparc"
+ifneq "$(findstring $(host_cpu),sparc s390x)" ""
 CFLAGS_SL = -fPIC
 else
 CFLAGS_SL = -fpic
