[PATCH 1/5] rpdfs-progs: don't link generators with main LDFLAGS
Auke Kok <[email protected]> Tue, 5 May 2026 10:53:01 -0700
| Newsgroups | dev.linux.lists.rpdfs-devel |
|---|---|
| Message-ID | <[email protected]> |
The code generators under shared/lk/gen/ only use libc. Linking them with -lxxhash -luring -luuid -lsystemd caused clean builds to fail when those dev packages weren't installed. Signed-off-by: Auke Kok <[email protected]> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8253885..886907d 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ $(BIN): %: %.o $$(filter $$(dir %)$$(PERCENT),$$(OBJ)) \ gcc $(LDFLAGS) -o $@ $^ $(GEN_BIN): %: %.c - gcc $(LDFLAGS) -o $@ $< + gcc -o $@ $< %.o %.d: %.c gcc $(CFLAGS) -MD -MP -MF $*.d -c $< -o $*.o -- 2.54.0