fix build against uClibc++, add libtool fixes, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8610 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d3424af78a
commit
2778c34c3b
@ -22,41 +22,55 @@ define Package/fcgi
|
|||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=Shared library of FastCGI
|
TITLE:=Shared library of FastCGI
|
||||||
DESCRIPTION:=\
|
|
||||||
FastCGI is a language independent, scalable, open extension to \\\
|
|
||||||
CGI that provides high performance without the limitations of \\\
|
|
||||||
server specific APIs.
|
|
||||||
URL:=http://www.fastcgi.com/
|
URL:=http://www.fastcgi.com/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/fcgi/description
|
||||||
|
FastCGI is a language independent, scalable, open extension to
|
||||||
|
CGI that provides high performance without the limitations of
|
||||||
|
server specific APIs.
|
||||||
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-static
|
--enable-static \
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
CONFIGURE_VARS += \
|
||||||
CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
||||||
LDFLAGS="$(LDFLAGS) -lm" \
|
LIBS="-nodefaultlibs -luClibc++ -lm" \
|
||||||
all install
|
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
$(call Build/Configure/Default)
|
||||||
|
$(call libtool_disable_rpath)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) all
|
||||||
|
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(STAGING_DIR)/usr/include/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(STAGING_DIR)/usr/include/
|
||||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(STAGING_DIR)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(STAGING_DIR)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/UninstallDev
|
define Build/UninstallDev
|
||||||
rm -rf \
|
rm -rf $(STAGING_DIR)/usr/include/fastcgi.h \
|
||||||
$(STAGING_DIR)/usr/include/f*cgi*.h \
|
$(STAGING_DIR)/usr/include/fcgi{app,_config,misc,io,ios,_stdio}.h \
|
||||||
$(STAGING_DIR)/usr/lib/libfcgi.{a,so*}
|
$(STAGING_DIR)/usr/lib/libfcgi.{a,so*}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/fcgi/install
|
define Package/fcgi/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so* $(1)/usr/lib/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,fcgi))
|
$(eval $(call BuildPackage,fcgi))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user