# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/leechcore/hotfix-makefile.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- LeechCore-2.23/leechagent_linux/Makefile.vanilla 2026-11-10 21:06:40.961724795 +0200 +++ LeechCore-2.23/leechagent_linux/Makefile 2026-11-10 21:06:58.591482949 +0200 @@ -5,7 +5,7 @@ ifeq ($(shell basename $(CC)),gcc) CFLAGS += -pie endif -LDFLAGS +=-Wl,-rpath,'$$ORIGIN' -ldl -L. -l:leechcore.so -Wl,-z,noexecstack +LDFLAGS +=-Wl,-rpath,'$$ORIGIN' -ldl -L. -lleechcore -Wl,-z,noexecstack DEPS = leechagent.h OBJ = oscompatibility.o leechagent.o leechrpcshared.o leechagent_rpc.o leechrpcserver.o @@ -13,7 +13,6 @@ $(CC) -c -o $@ $< $(CFLAGS) leechagent: $(OBJ) - cp ../files/leechcore.so . || cp ../../LeechCore*/files/leechcore.so . || true $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) mv leechagent ../files/ |true rm -f *.o || true