mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
system/truecrypt: Modified SlackBuild.
Fix underlinking error on -current, and set correct compiler flags. Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
parent
64e19ec387
commit
2ae11686ba
1 changed files with 7 additions and 10 deletions
|
@ -49,13 +49,12 @@ set -e
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKLDFLAGS=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKLDFLAGS=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
SLKLDFLAGS="-L/usr/lib64"
|
||||
fi
|
||||
|
||||
|
@ -71,15 +70,13 @@ find -L . \
|
|||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
if [ $ARCH = "x86_64" ]; then
|
||||
export LDFLAGS="$SLKLDFLAGS"
|
||||
fi
|
||||
export CXXFLAGS="$SLKCFLAGS"
|
||||
export CFLAGS="$SLKCFLAGS"
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Assume wxWidgets is already installed and we're linking dynamically.
|
||||
|
||||
TC_EXTRA_CFLAGS="$SLKCFLAGS" \
|
||||
TC_EXTRA_CXXFLAGS="$SLKCFLAGS" \
|
||||
TC_EXTRA_LFLAGS="$SLKLDFLAGS -ldl" \
|
||||
make
|
||||
|
||||
mkdir -p $PKG/usr/bin
|
||||
|
|
Loading…
Reference in a new issue