Fix #121: fix kpack and kerpack linking on linux64 with -no-pie flag

git-svn-id: svn://kolibrios.org@7582 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2019-02-05 00:33:17 +00:00
parent e3c9f7f8cc
commit 3040d1b8a2

View File

@ -1,11 +1,11 @@
CFLAGS=-O3 CFLAGS=-O3
all: kpack kerpack all: kpack kerpack
kpack: kpack64.o LZMAEncoder-kpack.o MatchFinder.o RangeCoder.o kpack: kpack64.o LZMAEncoder-kpack.o MatchFinder.o RangeCoder.o
gcc -nostartfiles -o kpack kpack64.o LZMAEncoder-kpack.o MatchFinder.o RangeCoder.o gcc -nostartfiles -no-pie -o kpack kpack64.o LZMAEncoder-kpack.o MatchFinder.o RangeCoder.o
kpack64.o: kpack64.asm kpack64.o: kpack64.asm
fasm kpack64.asm kpack64.o fasm kpack64.asm kpack64.o
kerpack: kerpack64.o LZMAEncoder-kerpack.o MatchFinder.o RangeCoder.o kerpack: kerpack64.o LZMAEncoder-kerpack.o MatchFinder.o RangeCoder.o
gcc -nostartfiles -o kerpack kerpack64.o LZMAEncoder-kerpack.o MatchFinder.o RangeCoder.o gcc -nostartfiles -no-pie -o kerpack kerpack64.o LZMAEncoder-kerpack.o MatchFinder.o RangeCoder.o
kerpack64.o: kerpack64.asm kerpack64.o: kerpack64.asm
fasm kerpack64.asm kerpack64.o fasm kerpack64.asm kerpack64.o
LZMAEncoder-kpack.o: lzma_c/LZMAEncoder.c lzma_c/LZMAEncoder.h lzma_c/MatchFinder.h lzma_c/lzma.h lzma_c/RangeCoder.h lzma_c/RangeCoderBit.h lzma_c/RangeCoderBitTree.h lzma_c/common.h LZMAEncoder-kpack.o: lzma_c/LZMAEncoder.c lzma_c/LZMAEncoder.h lzma_c/MatchFinder.h lzma_c/lzma.h lzma_c/RangeCoder.h lzma_c/RangeCoderBit.h lzma_c/RangeCoderBitTree.h lzma_c/common.h
@ -18,4 +18,4 @@ RangeCoder.o: lzma_c/RangeCoder.c lzma_c/RangeCoder.h lzma_c/RangeCoderBit.h lzm
gcc -c $(CFLAGS) -o RangeCoder.o lzma_c/RangeCoder.c gcc -c $(CFLAGS) -o RangeCoder.o lzma_c/RangeCoder.c
clean: clean:
rm *.o kpack kerpack rm -f *.o kpack kerpack