add no-pie flags in lama on lama

This commit is contained in:
Danya Berezun 2023-10-02 13:28:42 +02:00
parent 7300ed72e4
commit 17cf7f4682
2 changed files with 76 additions and 76 deletions

View file

@ -1,7 +1,7 @@
all: runtime.o
runtime.o: runtime.c
gcc -g -m32 -c runtime.c
gcc -g -m32 -no-pie -c runtime.c
clean:
rm -f *.a *.o *~

View file

@ -922,6 +922,6 @@ public fun compileX86 (args, code) {
codeSection (code)
).stringcat);
system ({"gcc -g -m32 -o ", args.getBaseName, " ", runtime, " ", asmFile}.stringcat)
system ({"gcc -g -no-pie -m32 -o ", args.getBaseName, " ", runtime, " ", asmFile}.stringcat)
esac
}