aboutsummaryrefslogtreecommitdiff
path: root/development/simavr/simavr.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/simavr/simavr.SlackBuild')
-rw-r--r--development/simavr/simavr.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/development/simavr/simavr.SlackBuild b/development/simavr/simavr.SlackBuild
index 508a322e23819..a8b989b385fb1 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 \