Mercurial > vanilla
diff python/python2/python2.sh @ 549:bad483aace64
vanilla: use prefix= instead
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 23 Jun 2019 15:13:10 +0200 |
parents | 830d949b71a6 |
children | e1b73f64408d |
line wrap: on
line diff
--- a/python/python2/python2.sh Tue Apr 16 20:01:00 2019 +0200 +++ b/python/python2/python2.sh Sun Jun 23 15:13:10 2019 +0200 @@ -26,6 +26,7 @@ : ${CHOST:=$(uname -m)-linux-musl} : ${CBUILD:=$(uname -m)-linux-musl} +: ${CTARGET:=$(uname -m)-linux-musl} : ${CC:=clang} : ${CFLAGS:=-O2} : ${LDFLAGS:=} @@ -51,17 +52,17 @@ ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/ \ - --disable-static \ + --target=$CTARGET \ + --prefix=/. \ --enable-shared \ --with-system-expat \ --with-system-ffi \ $with_ipv6 make - make altinstall maninstall DESTDIR=$DESTDIR + make DESTDIR=$DESTDIR altinstall maninstall ln -sf python2.7 $DESTDIR/bin/python2 - # Avoid conflicts with python 3. + # Avoid conflicts with Python 3. rm -f $DESTDIR/bin/2to3 mv $DESTDIR/bin/smtpd.py{,2.7} mv $DESTDIR/bin/idle{,2.7}