diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-02-09 22:41:17 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-12 00:29:41 +0700 |
commit | cd2ef9761781901c01198c73c48a4dfc48c6f479 (patch) | |
tree | c2ecda1b3ff66d1c4ded5b00f8755b1f7c6587bb /python/pycryptopp/pycryptopp.SlackBuild | |
parent | df4230016025f0f8ea2f08c383b3c29bd2d633b5 (diff) |
python/pycryptopp: Fix build on newer gcc.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pycryptopp/pycryptopp.SlackBuild')
-rw-r--r-- | python/pycryptopp/pycryptopp.SlackBuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/pycryptopp/pycryptopp.SlackBuild b/python/pycryptopp/pycryptopp.SlackBuild index d7a936377b0b..70ae017884f5 100644 --- a/python/pycryptopp/pycryptopp.SlackBuild +++ b/python/pycryptopp/pycryptopp.SlackBuild @@ -76,6 +76,8 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION +# thanks arch maintainers +patch -p1 -i $CWD/pycryptopp-0.7.1-abi-change.patch chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -83,6 +85,11 @@ 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 {} \; +export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1 + +CFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ +CXXFLAGS="$SLKCFLAGS -fno-strict-aliasing" \ +python setup.py build python setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |