mk/prog.mk: set proper target for bins.

Fixes build failure in aarch64-musl and cross compilation...
weird it didn't fail on native.
This commit is contained in:
Juan RP 2019-06-20 19:26:43 +02:00
parent 70867bd774
commit 5098d03238
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -46,12 +46,12 @@ endif
@printf " [CC]\t\t$@\n"
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
$(BIN).static: $(OBJS) $(STATIC_LIBS)
$(BIN).static: $(OBJS) $(TOPDIR)/lib/libxbps.a
@printf " [CCLD]\t\t$@\n"
${SILENT}$(CC) -static $(OBJS) $(CPPFLAGS) -L$(TOPDIR)/lib \
$(CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) $(STATIC_LIBS) -o $@
$(BIN): $(OBJS)
$(BIN): $(OBJS) $(TOPDIR)/lib/libxbps.so
@printf " [CCLD]\t\t$@\n"
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib \
$(CFLAGS) $(PROG_CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) \