boost: Build non-versioned libraries
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18997 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
860bc055d0
commit
699e0eae81
@ -36,14 +36,14 @@ endef
|
|||||||
CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR)
|
CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR)
|
||||||
|
|
||||||
LIBRARIES:= \
|
LIBRARIES:= \
|
||||||
serialization \
|
serialization
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
( cd $(PKG_BUILD_DIR) ; \
|
( cd $(PKG_BUILD_DIR) ; \
|
||||||
echo "using gcc : : $(GNU_TARGET_NAME)-gcc : <cflags>$(CFLAGS) <cxxflags>$(CXXFLAGS) <linkflags>$(LDFLAGS) ;" > tools/build/v2/site-config.jam ; \
|
echo "using gcc : : $(GNU_TARGET_NAME)-gcc : <cflags>$(CFLAGS) <cxxflags>$(CXXFLAGS) <linkflags>$(LDFLAGS) ;" > tools/build/v2/site-config.jam ; \
|
||||||
bjam \
|
bjam \
|
||||||
'-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
|
'-sBUILD=release <optimization>space <inlining>on <debug-symbols>off' \
|
||||||
--toolset=gcc \
|
--toolset=gcc --build-type=minimal --layout=system \
|
||||||
$(foreach c, $(LIBRARIES), \
|
$(foreach c, $(LIBRARIES), \
|
||||||
--with-$(c) \
|
--with-$(c) \
|
||||||
) \
|
) \
|
||||||
@ -58,8 +58,9 @@ endef
|
|||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include/boost $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/include/boost $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/include/boost-*/boost/* $(1)/usr/include/boost/ # copies _all_ header files - independent of <--with-library>-argument above
|
$(CP) $(PKG_INSTALL_DIR)/include/boost/* $(1)/usr/include/boost/ # copies _all_ header files - independent of <--with-library>-argument above
|
||||||
$(CP) $(PKG_INSTALL_DIR)/lib/*.a $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/lib/*.a $(1)/usr/lib/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/boost/install
|
define Package/boost/install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user