aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprland.pc.in
diff options
context:
space:
mode:
authorq234rty <[email protected]>2023-05-01 20:42:16 +0800
committerGitHub <[email protected]>2023-05-01 13:42:16 +0100
commitdc469dc4c18732b534c3d9f46678a6e53379abd6 (patch)
tree27719dd73629ca1aadcc7cf5f63796110f5728e4 /hyprland.pc.in
parent11b7ce14f87448417ce39cb667df6c6b9a591804 (diff)
downloadHyprland-dc469dc4c18732b534c3d9f46678a6e53379abd6.tar.gz
Hyprland-dc469dc4c18732b534c3d9f46678a6e53379abd6.zip
Prefer bundled wlroots headers to system ones (#2204)
In the case that the prefix is `/usr`, system wlroots headers installed in `/usr/include/wlr` will be preferred over those bundled by hyprland as `-I` directories are searched [from left to right](https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html), which is not great since the system wlroots headers might not be compatible with hyprland. Fix the order of cflags so bundled wlroots headers will be preferred over system ones.
Diffstat (limited to 'hyprland.pc.in')
-rw-r--r--hyprland.pc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprland.pc.in b/hyprland.pc.in
index 6d158b72..36d5907d 100644
--- a/hyprland.pc.in
+++ b/hyprland.pc.in
@@ -5,4 +5,4 @@ Name: Hyprland
URL: https://github.com/hyprwm/Hyprland
Description: Hyprland header files
Version: @HYPRLAND_VERSION@
-Cflags: -I"${includedir}" -I"${includedir}/hyprland/protocols" -I"${includedir}/hyprland/wlroots"
+Cflags: -I"${includedir}/hyprland/protocols" -I"${includedir}/hyprland/wlroots" -I"${includedir}"