Commit Graph

27 Commits

Author SHA1 Message Date
Jeremy Drake
727a2b5cd9 pacman: fix makepkg-mingw conf
it turns out makepkg already include ${MAKEPKG_CONF}.d/*.conf, which
results in the last alphabetically getting to set the variables.  Rename
our directory without the .conf, so this pattern won't match it.
2025-05-17 15:21:15 -07:00
jeremyd2019
346cd608ca pacman: make msystems pluggable (#5382)
makepkg-mingw.conf will include
/etc/makepkg_mingw.conf.d/${MSYSTEM,,}.conf, and makepkg-mingw will list
these confs to populate MINGW_ARCH_ALLOWED
2025-05-17 19:43:35 +02:00
مهدي شينون (Mehdi Chinoune)
0431c0d051 pacman: drop clang32 2024-12-19 06:10:43 +01:00
Christoph Reiter
13e7de80ca makepkg_mingw.conf: stop using CPPFLAGS
cmake for example doesn't use CPPFLAGS, so anything using cmake wont
get __USE_MINGW_ANSI_STDIO set, which is causing problems like
https://github.com/msys2/MINGW-packages/pull/21796

Instead move __USE_MINGW_ANSI_STDIO into CFLAGS and CXXFLAGS.

Uses "-Wp" because we already do that for _FORTIFY_SOURCE, not sure
if it helps with anything really, but why not.

See #4860
2024-08-30 18:50:13 +02:00
Maksim Bondarenkov
42df58d79a makepkg-mingw.conf: add RUSTFLAGS
frame-pointers already enabled for rust package, so let's put it for all rust-based packages
2024-08-20 11:04:00 +03:00
Christoph Reiter
1915a138c0 pacman: Update to 6.1.0 (v2)
Same as #4584 but with an additional backport:
https://github.com/msys2/msys2-pacman/pull/49

Old message:

See msys2/msys2-pacman#45

makepkg.conf synced with the upstream version:
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/etc/makepkg.conf.in

Skip patches only changing CI configs
2024-05-09 09:45:39 +02:00
مهدي شينون (Mehdi Chinoune)
2673230b92 Revert "pacman: Update to 6.1.0"
This reverts commit 7edf29e04a.
2024-05-07 16:15:46 +01:00
Christoph Reiter
7edf29e04a pacman: Update to 6.1.0
See https://github.com/msys2/msys2-pacman/pull/45

makepkg.conf synced with the upstream version:
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/etc/makepkg.conf.in

Skip patches only changing CI configs
2024-05-06 07:58:15 +02:00
Markus Mützel
5379887583 pacman: remove -pipe from default LDFLAGS for all environments
This is motivated by https://github.com/msys2/MINGW-packages/pull/20591
where flang v18 stopped supporting the -pipe flag which is passed to
it via LDFLAGS. v17 still supported it and it's not clear where and when
it was changed exactly.

Let's remove it from LDFLAGS because:

* it's not clear if -pipe actually does anything for linking
  (it's still passed via CFLAGS/CXXFLAGS)
* other distros like Arch/Gentoo also only add it to CFLAGS/CXXFLAGS
* of the above flang issue
2024-04-07 20:05:43 +02:00
مهدي شينون (Mehdi Chinoune)
5914ecb408 pacman: Add security hardening compile flags to CXXFLAGS 2024-01-21 12:24:07 +01:00
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