configure: fixes for building with an installed static libxbps.
This commit is contained in:
parent
274c8c432b
commit
8dc6926664
31
configure
vendored
31
configure
vendored
@ -368,6 +368,22 @@ else
|
|||||||
echo yes
|
echo yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check if external libfetch should be used.
|
||||||
|
#
|
||||||
|
if [ -z "$EXTERNAL_LIBFETCH" ]; then
|
||||||
|
EXTERNAL_LIBFETCH_VALUE="no (using internal copy)"
|
||||||
|
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK
|
||||||
|
echo "PROG_LDFLAGS += -lxbps" >>$CONFIG_MK
|
||||||
|
echo "STATIC_LIBS = -lxbps" >>$CONFIG_MK
|
||||||
|
else
|
||||||
|
EXTERNAL_LIBFETCH_VALUE=yes
|
||||||
|
echo "USE_EXTERNAL_LIBFETCH = 1" >>$CONFIG_MK
|
||||||
|
echo "LDFLAGS += -lfetch" >>$CONFIG_MK
|
||||||
|
echo "PROG_LDFLAGS += -lxbps -lfetch" >>$CONFIG_MK
|
||||||
|
echo "STATIC_LIBS = -lxbps -lfetch" >>$CONFIG_MK
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# zlib with pkg-config support is required.
|
# zlib with pkg-config support is required.
|
||||||
#
|
#
|
||||||
@ -379,7 +395,7 @@ else
|
|||||||
echo "found version $($PKGCONFIG_BIN --modversion zlib)."
|
echo "found version $($PKGCONFIG_BIN --modversion zlib)."
|
||||||
echo "CFLAGS += $($PKGCONFIG_BIN --cflags zlib)" >>$CONFIG_MK
|
echo "CFLAGS += $($PKGCONFIG_BIN --cflags zlib)" >>$CONFIG_MK
|
||||||
echo "LDFLAGS += $($PKGCONFIG_BIN --libs zlib)" >>$CONFIG_MK
|
echo "LDFLAGS += $($PKGCONFIG_BIN --libs zlib)" >>$CONFIG_MK
|
||||||
echo "STATIC_LIBS = $($PKGCONFIG_BIN --libs --static zlib)" \
|
echo "STATIC_LIBS += $($PKGCONFIG_BIN --libs --static zlib)" \
|
||||||
>>$CONFIG_MK
|
>>$CONFIG_MK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -423,19 +439,6 @@ else
|
|||||||
>>$CONFIG_MK
|
>>$CONFIG_MK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# Check if external libfetch should be used.
|
|
||||||
#
|
|
||||||
if [ -z "$EXTERNAL_LIBFETCH" ]; then
|
|
||||||
EXTERNAL_LIBFETCH_VALUE="no (using internal copy)"
|
|
||||||
echo "CPPFLAGS += -I\$(TOPDIR)/lib/fetch" >>$CONFIG_MK
|
|
||||||
else
|
|
||||||
EXTERNAL_LIBFETCH_VALUE=yes
|
|
||||||
echo "USE_EXTERNAL_LIBFETCH = 1" >>$CONFIG_MK
|
|
||||||
echo "LDFLAGS += -lfetch" >>$CONFIG_MK
|
|
||||||
echo "STATIC_LIBS += -lfetch" >>$CONFIG_MK
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# OpenSSL libssl with pkg-config support is required.
|
# OpenSSL libssl with pkg-config support is required.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user