Commit | Line | Data |
---|---|---|
4719b715 CD |
1 | This following patch was originally found at the debian mingw-w64 team's |
2 | mingw-w64 repo located here: | |
3 | https://salsa.debian.org/mingw-w64-team/mingw-w64.git | |
4 | ||
5 | Invoke the following in the aforementioned repo to see the original patch: | |
6 | ||
7 | $ git show 4974e2c:debian/patches/dlltool-temp-prefix.patch | |
8 | ||
9 | Description: Specify dlltool's temp prefix | |
10 | Author: Stephen Kitt <steve@sk2.org> | |
11 | ||
12 | By default dlltool uses its pid for the object files it generates. | |
13 | Enforcing its temp prefix allows the files it generates to be | |
14 | reproducible. | |
15 | ||
16 | --- a/mingw-w64-crt/Makefile.am | |
17 | +++ b/mingw-w64-crt/Makefile.am | |
18 | @@ -36,7 +36,7 @@ | |
19 | DTDEF32=$(GENLIB) $(DLLTOOLFLAGS32) $(AM_DLLTOOLFLAGS) | |
20 | DTDEF64=$(GENLIB) $(DLLTOOLFLAGS64) $(AM_DLLTOOLFLAGS) | |
21 | else | |
22 | - AM_DLLTOOLFLAGS=-k --as=$(AS) --output-lib $@ | |
23 | + AM_DLLTOOLFLAGS=-k --as=$(AS) --output-lib $@ --temp-prefix $$(basename $@ .a) | |
24 | DLLTOOLFLAGSARM32=-m arm | |
25 | DLLTOOLFLAGSARM64=-m arm64 | |
26 | DLLTOOLFLAGS32=--as-flags=--32 -m i386 |