summaryrefslogtreecommitdiff
path: root/archivers/p7zip
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/p7zip')
-rw-r--r--archivers/p7zip/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/archivers/p7zip/Makefile b/archivers/p7zip/Makefile
index 5225938325fd..4e624172d649 100644
--- a/archivers/p7zip/Makefile
+++ b/archivers/p7zip/Makefile
@@ -39,6 +39,10 @@ ALL_TARGET= 7za sfx
IGNORE= requires wchar functions (mbrtowc(3) etc.) for compilation
.endif
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+= -fPIC
+.endif
+
post-patch:
${SED} -e 's/-O2/${CFLAGS} ${PTHREAD_CFLAGS}/' \
-e 's!g\+\+!${CXX}!' \