configure: explicitly link dynamic executables to the shared library.

This commit is contained in:
Juan RP 2012-07-19 16:30:53 +02:00
parent ef5743dfe5
commit eb02d30791
2 changed files with 1 additions and 3 deletions

2
configure vendored
View File

@ -423,12 +423,10 @@ if $XCC -lfetch _$func.c -o _$func 2>/dev/null; then
LIBFETCH=yes
echo "USE_EXTERNAL_LIBFETCH = 1" >>$CONFIG_MK
echo "LDFLAGS += -lfetch" >>$CONFIG_MK
echo "PROG_LDFLAGS += -lxbps -lfetch" >>$CONFIG_MK
echo "STATIC_LIBS = \$(TOPDIR)/lib/libxbps.a -lfetch" >>$CONFIG_MK
else
LIBFETCH=no
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK
echo "PROG_LDFLAGS += \$(TOPDIR)/lib/libxbps.a" >>$CONFIG_MK
echo "STATIC_LIBS = \$(TOPDIR)/lib/libxbps.a" >>$CONFIG_MK
fi
echo "$LIBFETCH."

View File

@ -50,5 +50,5 @@ $(BIN).static: $(OBJS)
$(BIN): $(OBJS)
@printf " [CCLD]\t\t$@\n"
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib $(CFLAGS) \
$(PROG_CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) -o $@
$(PROG_CFLAGS) $(LDFLAGS) -lxbps -o $@