diff options
author | R. S. Ananda Murthy <rsamurti@gmail.com> | 2017-09-04 22:48:13 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-09-04 23:10:58 +0100 |
commit | d4784bea4be672a74ba67d91899dc9428fa93462 (patch) | |
tree | 2df03a373f62ba16126ca3dc532422c25ef91034 /development/simavr/simavr.SlackBuild | |
parent | e411e951dfa13738f065e0a3eec041fc5cab5e5b (diff) | |
download | slackbuilds-d4784bea4be672a74ba67d91899dc9428fa93462.tar.gz |
development/simavr: Updated for version git20170904.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/simavr/simavr.SlackBuild')
-rw-r--r-- | development/simavr/simavr.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/development/simavr/simavr.SlackBuild b/development/simavr/simavr.SlackBuild index 508a322e23..a8b989b385 100644 --- a/development/simavr/simavr.SlackBuild +++ b/development/simavr/simavr.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=simavr -VERSION=${VERSION:-git20170615} +VERSION=${VERSION:-git20170904} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,16 +41,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKCFLAGS="-g -O0 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-g -O0 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-g -O0 -fPIC" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" + SLKCFLAGS="-g -O0" LIBDIRSUFFIX="" fi @@ -71,9 +71,11 @@ find -L . \ sed -i -e "s#\$(DESTDIR)/lib#\$(DESTDIR)/lib${LIBDIRSUFFIX}#" simavr/Makefile sed -i -e "s#libdir=${exec_prefix}/lib#libdir=${exec_prefix}/lib${LIBDIRSUFFIX}#" \ - simavr/simavr.pc simavr/simavr-avr.pc + simavr/simavr.pc simavr/simavr-avr.pc simavr/simavrparts.pc -make AVR_ROOT=/usr/avr RELEASE=1 build-simavr +make clean +make AVR_ROOT=/usr/avr \ + CFLAGS="-Wall -Wextra $SLKCFLAGS -std=gnu99 -Wno-sign-compare -Wno-unused-parameter" make PREFIX="/usr" DESTDIR="$PKG/usr" install find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |