# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/classicube/libdir.patch # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ endif ifeq ($(PLAT),linux) # -lm may be needed for __builtin_sqrtf (in cases where it isn't replaced by a CPU instruction intrinsic) - LIBS = -lX11 -lXi -lpthread -lGL -ldl -lm + LIBS=$(shell pkg-config --libs xi x11) -lpthread -lGL -lm -ldl BUILD_DIR = build/linux