Skip to content

Commit 40c6f65

Browse files
committed
Windows: update static gifski to 1.12.0
1 parent 7bf40b4 commit 40c6f65

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.12.0
2+
- Update embedded libgifski to upstream 1.12.0
3+
- Windows: if rust is available, default to source build of libgifski.
4+
15
1.6.6-1
26
- Fix for legacy Windows Vista/2008 (for the old winbuilder)
37

src/Makevars.win

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,20 @@ STATLIB = $(LIBDIR)/libmyrustlib.a
44
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcrypt
55

66
# These can also be set in ~/.cargo/config
7-
#export CARGO_TARGET_I686_PC_WINDOWS_GNU_LINKER=C:\\rtools40\\mingw$(WIN)\\bin\\gcc
8-
#export CC=$(CC)
9-
#export AR=$(AR)
10-
11-
# This bypasses the exception stuff
12-
#export CARGO_TARGET_I686_PC_WINDOWS_GNU_RUSTFLAGS=-C panic=abort
137
ifeq ($(R_COMPILED_BY),gcc 8.3.0)
148
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/mingw$(WIN)/bin
159
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=$(RTOOLS40_HOME)\\mingw64\\bin\\gcc
1610
export CARGO_TARGET_I686_PC_WINDOWS_GNU_LINKER=$(RTOOLS40_HOME)\\\mingw32\\bin\\gcc
1711
else
18-
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=gcc
19-
ifdef RTOOLS40_HOME
20-
GCCPATH=$(subst C:\,/c/,$(RTOOLS40_HOME))/ucrt64/bin
21-
else
2212
GCCPATH=$(subst C:\,/c/,$(RTOOLS43_HOME))/x86_64-w64-mingw32.static.posix/bin
2313
endif
24-
endif
2514

2615
all: clean rustup
2716

2817
$(SHLIB): $(STATLIB)
2918

3019
$(STATLIB):
31-
ifeq ($(WIN),64) #hack for mxe-rtools42
20+
ifeq ($(WIN),64) #hack for mxe-rtools42 missing -lgcc_eh
3221
mkdir -p myrustlib/target/release/deps; echo '!<arch>' > myrustlib/target/release/deps/libgcc_eh.a
3322
endif
3423
PATH="$(GCCPATH):$(USERPROFILE)\.cargo:$(PATH)" cargo build --target=$(TARGET) --release --manifest-path=myrustlib/Cargo.toml

src/Makevars.win.static

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
VERSION = 1.6.6
1+
VERSION = 1.12.0
22
RWINLIB = ../windows/gifski-winlibs
33
PKG_CPPFLAGS = -I$(RWINLIB)/include
4-
PKG_LIBS = -L$(RWINLIB)/lib${R_ARCH}${CRT} \
4+
GCC_VERSION = ${subst gcc,,${COMPILED_BY}}
5+
PKG_LIBS = -L$(RWINLIB)/lib$(GCC_VERSION)$(R_ARCH) \
6+
-L$(RWINLIB)/lib$(R_ARCH) \
57
-lgifski -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcrypt
68

79
all: clean winlibs

0 commit comments

Comments
 (0)