sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit bf8d755ae26d36db1c75e453036456544565a68f
parent f81d69cb6c96f4128a68906c328adfc23d299443
Author: Shiz <hi@shiz.me>
Date:   Sat Aug  1 00:09:40 +0200

Call C compiler for linking

Using $(LD) directly for linking can cause issues with cross-compilers
and various other toolchains, as various libraries such as libc may not
be implicitly linked in, causing symbol resolution errors.
Linking through the C compiler frontend solves this issue.

Diffstat:
Makefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -168,7 +168,7 @@ $(BIN): $(LIB) $(@:=.o) $(OBJ): $(HDR) config.mk .o: - $(LD) $(LDFLAGS) -o $@ $< $(LIB) + $(CC) $(LDFLAGS) -o $@ $< $(LIB) .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<