aboutsummaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-09-18 16:18:49 -0600
committerSelene ToyKeeper2019-09-18 16:18:49 -0600
commita0b974352bccb97a9efdd66fffe6825793b5e5d0 (patch)
treeb001326e595be48dcafd90dbf4ab01318d7b4010 /bin/build.sh
parentmerged MF01-Mini / MT07 support branch (diff)
parentadded a compile flag to fix compatibility with GCC 7/8/9's new semantics for ... (diff)
downloadanduril-a0b974352bccb97a9efdd66fffe6825793b5e5d0.tar.gz
anduril-a0b974352bccb97a9efdd66fffe6825793b5e5d0.tar.bz2
anduril-a0b974352bccb97a9efdd66fffe6825793b5e5d0.zip
merged updates from trunk, including gcc7/8/9 compatibility
Diffstat (limited to '')
-rwxr-xr-xbin/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 192fa30..fbb24ea 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -14,9 +14,9 @@ export PROGRAM=$1 ; shift
export MCU=attiny$ATTINY
export CC=avr-gcc
export OBJCOPY=avr-objcopy
-export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
+export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
export OFLAGS="-Wall -g -Os -mmcu=$MCU"
-export LDFLAGS=
+export LDFLAGS="-fgnu89-inline"
export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
export OBJS=$PROGRAM.o