configure: explicitly link dynamic executables to the shared library.
This commit is contained in:
parent
ef5743dfe5
commit
eb02d30791
2
configure
vendored
2
configure
vendored
@ -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."
|
||||
|
@ -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 $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user