Skip to content

Commit

Permalink
stagingtool: fixed link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CromFr committed Nov 5, 2023
1 parent c052e5d commit a1e2cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file removed stagingtool/lzma.obj.bak
Binary file not shown.
7 changes: 4 additions & 3 deletions stagingtool/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LZMA_SRC= \
LzmaDec.c \
LzmaEnc.c \
LzFindMt.c \
LzFindOpt.c \
7zFile.c \
7zStream.c \
Util/Lzma/LzmaUtil.c \
Expand All @@ -17,14 +18,14 @@ LZMA_SRC= \
all:
cd lzma/ && gcc $(CFLAGS) -O2 -Wall -D_7ZIP_ST -Dmain=lzma_main -c $(LZMA_SRC)
cd lzma/ && ld $(LDFLAGS) -o ../lzma.o -r $(notdir $(LZMA_SRC:.c=.o))
strip -K lzma_main -K _lzma_main -K eh_frame lzma.o
strip --strip-unneeded -K lzma_main -K _lzma_main lzma.o

mingw-i686:
cd lzma/ && i686-w64-mingw32-gcc $(CFLAGS) -m32 -O2 -Wall -D_7ZIP_ST -Dmain=lzma_main -c $(LZMA_SRC)
cd lzma/ && i686-w64-mingw32-ld $(LDFLAGS) -o ../lzma.obj -r $(notdir $(LZMA_SRC:.c=.o))
i686-w64-mingw32-strip -K lzma_main -K _lzma_main -K eh_frame lzma.obj
i686-w64-mingw32-strip --strip-unneeded -K lzma_main -K _lzma_main lzma.obj

mingw-x86_64:
cd lzma/ && x86_64-w64-mingw32-gcc $(CFLAGS) -O2 -Wall -D_7ZIP_ST -Dmain=lzma_main -c $(LZMA_SRC)
cd lzma/ && x86_64-w64-mingw32-ld $(LDFLAGS) -o ../lzma.obj -r $(notdir $(LZMA_SRC:.c=.o))
x86_64-w64-mingw32-strip -K lzma_main -K _lzma_main -K eh_frame lzma.obj
x86_64-w64-mingw32-strip --strip-unneeded -K lzma_main -K _lzma_main lzma.obj

0 comments on commit a1e2cd4

Please sign in to comment.