summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2015-09-18 15:29:09 +1000
committerDamien Zammit <damien@zamaudio.com>2015-09-18 15:29:09 +1000
commit7f0a28524e2c71a9d0d04af1ead44d02df52e531 (patch)
treee5c7a6a89d674f7039d59ba307780568c0599e84
parent0b9019f0c7fc9dcb12d88514509d2e01cec5da41 (diff)
Use -fPIC in makefile
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--firmware/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index a4845aa..2c38543 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -31,10 +31,10 @@ $(TARGET): $(OBJS) $(OBJS2)
$(OC) -S -I elf32-lm32 -O binary $(TARGET) smu.rom
.c.o:
- $(CC) $(LIBS) -O0 -Wall -ffreestanding -c $< -o $@
+ $(CC) $(LIBS) -fPIC -O0 -Wall -ffreestanding -c $< -o $@
.S.o:
- $(CC) $(LIBS) -O0 -Wall -ffreestanding -c $< -o $@
+ $(CC) $(LIBS) -fPIC -O0 -Wall -ffreestanding -c $< -o $@
clean:
rm -f *.o *~ $(TARGET) smu.rom