Browse Source

libmicrohttpd: build with PIC

Fixes compilation when linking statically.

Made URL HTTPS.

Moved description section for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by Alexander Couzens
parent
commit
711456a4db
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      libs/libmicrohttpd/Makefile

+ 9
- 8
libs/libmicrohttpd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libmicrohttpd
PKG_VERSION:=0.9.70
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/libmicrohttpd
@ -28,7 +28,7 @@ define Package/libmicrohttpd/default
SECTION:=libs
CATEGORY:=Libraries
TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
URL:=http://www.gnu.org/software/libmicrohttpd/
URL:=https://www.gnu.org/software/libmicrohttpd/
endef
define Package/libmicrohttpd-no-ssl
@ -46,13 +46,19 @@ $(call Package/libmicrohttpd/default)
PROVIDES:=libmicrohttpd
endef
define Package/libmicrohttpd/description
GNU libmicrohttpd is a small C library that is supposed to make it easy
to run an HTTP server as part of another application.
endef
CONFIGURE_ARGS += \
--disable-curl \
--disable-rpath \
--disable-doc \
--disable-examples \
--disable-poll \
--enable-epoll
--enable-epoll \
--with-pic
ifeq ($(BUILD_VARIANT),ssl)
CONFIGURE_ARGS += \
@ -64,11 +70,6 @@ CONFIGURE_ARGS += \
--without-gnutls
endif
define Package/libmicrohttpd/description
GNU libmicrohttpd is a small C library that is supposed to make it easy
to run an HTTP server as part of another application.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/


Loading…
Cancel
Save