system/tc-play: Fixed build failure on -current.

Don't use hardcoded -fPIE.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
David Spencer 2015-12-31 16:36:34 +00:00 committed by Willy Sudiarto Raharjo
parent 304cc19021
commit 1f0c29957f
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Slackware build script for tc-play
@ -71,10 +70,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Don't force these flags kthxbye
sed -i \
-e "s/-O3//" \
-e "s/-fPIE//" \
CMakeLists.txt
mkdir -p build
cd build
cmake \
DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
@ -92,6 +97,7 @@ rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libtcplay.a
mkdir -p $PKG/usr/man
mv $PKG/usr/share/man/* $PKG/usr/man
rm -r $PKG/usr/share
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done