Commit Graph

17 Commits

Author SHA1 Message Date
Christoph Reiter
c2d0bcec5c makepkg: default to -Wl,--large-address-aware
There are many cases where the extra memory is helpful and
with the type of software we package this hopefully shouldn't
lead to any problems.

Fixes #3283
2022-11-08 07:31:19 +01:00
Christoph Reiter
99a00a19a6 makepkg: add -fstack-protector-strong to default CFLAGS
Linux distros have this enabled for years, let's give it a try.

See #3237
2022-10-21 14:26:23 +02:00
Christoph Reiter
2f56fc3900 makepkg: don't use "-mno-*" in CFLAGS
In case a package has a configure check for say -mssse3 and then
enables it if the compiler supports it it would be passed to the compiler
before our CFLAGS, which currently has -mno-ssse3 (which seems to also disable
sse4 and above while at it). The code then assumes it's available but the compiler
fails.

While one could argue that we try to prevent ssse3+ being used in packages, there
are always exceptions like building sse4 code which dynamically gets executed.

So it's better we only enable machine options in CFLAGS and never disable them

Replace "-march=core2 -mno-ssse3" with the equivalent "-march=nocona -msahf".
Note that the GCC docs wrongly state that "nocona" doesn't include "CX16", while it does.

See https://github.com/msys2/MINGW-packages/pull/13651
2022-10-20 21:08:52 +02:00
Christoph Reiter
8b7dc6676b makepkg: set _FORTIFY_SOURCE=2 by default
This follows what Arch Linux does by default, see
091c871471/trunk/makepkg.conf (L42)

This is now possible after https://github.com/msys2/MINGW-packages/issues/13401
2022-10-17 00:17:18 +02:00
Christoph Reiter
6e7e3ff4bc makepkg: disable SSSE3 by default
There are some old AMD CPUs which run Win10 (somehow) but
don't have SSSE3 (not to be confused with SSE3), so explicitely
disable it. Both gcc and clang seem to understand this combination.
2022-10-16 23:18:45 +02:00
LIU Hao
cffbf28711 makepkg: Set default arch for native x86_64 packages to core2
This allows builtin atomic operations on 128-bit integers.

Signed-off-by: LIU Hao <lh_mouse@126.com>
2022-10-16 19:26:17 +08:00
Christoph Reiter
c9c3ad06fa pacman: use zstd for source packages too
because why not
2022-04-07 20:12:21 +02:00
Christoph Reiter
7e7680cc65 makepkg.conf: remove redundant LDFLAGS
Remove all flags which are default with the respective toolchain anyway.
This isn't supposed to change anything.

--no-seh remains, see https://github.com/msys2/MSYS2-packages/pull/2133
2022-02-09 19:59:24 +01:00
Christoph Reiter
cc5871f755 makepkg.conf: remove git related vars
They were never exported (also not in PKGBUILD files) so not used.
Just remove them and handle this in PKGBUILD by not using "git am"
2022-02-09 18:46:53 +01:00
Jeremy Drake
6d99bab4a3 pacman: switch mingw i686 -march to pentium4
This seemed like a reasonable minimum, requiring instruction sets
through sse2.
2021-08-21 20:38:26 -07:00
Christoph Reiter
0b1a78a25e pacman: Update to 6.0.0 2021-06-06 10:47:06 +02:00
Mehdi Chinoune
48995858f9 pacman: export CC and CXX variables explicitly 2021-05-15 11:26:50 +01:00
Jeroen Ooms
a51c48c780 Improve error message for incorrect MSYSTEM value 2021-04-14 12:24:54 +02:00
Jeremy Drake
e6cfdf08a5 add CLANGARM64 MSYSTEM/MINGW_ARCH 2021-04-07 21:38:50 -07:00
Christoph Reiter
7b2a7abf07 pacman: typo 2021-03-20 18:18:04 +01:00
Christoph Reiter
ac6a3cb51d pacman: makepkg-mingw: add ucrt64 2021-03-20 13:13:48 +01:00
Christoph Reiter
64a00cb9a0 pacman: merge all mingw makepkg.conf files into one 2021-03-19 11:42:52 +01:00