summaryrefslogtreecommitdiff
path: root/source/a/cpio/cpio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/cpio/cpio.SlackBuild')
-rwxr-xr-xsource/a/cpio/cpio.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/a/cpio/cpio.SlackBuild b/source/a/cpio/cpio.SlackBuild
index ef1145a7..463cfc4e 100755
--- a/source/a/cpio/cpio.SlackBuild
+++ b/source/a/cpio/cpio.SlackBuild
@@ -53,14 +53,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fcommon"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -fcommon"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC -fcommon"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2 -fcommon"
+ LIBDIRSUFFIX=""
fi
# Don't use icecream: