Skip to content

Commit

Permalink
link static libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Feb 8, 2015
1 parent b117c66 commit 9976ca7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions zerotier/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=zerotier
PKG_VERSION:=1.0.2
PKG_REV:=045b47852d75c47754e2a2fad678e5f0c91fa7da
PKG_RELEASE:=1
PKG_REV:=e30192d0823451473dbec3371e976a30fdc9d547
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=git://github.com/mwarning/ZeroTierOne.git
Expand All @@ -20,12 +20,14 @@ PKG_SOURCE_VERSION:=$(PKG_REV)

PKG_LICENSE:=GPL-3.0

PKG_BUILD_DEPENDS:=libstdcpp

include $(INCLUDE_DIR)/package.mk

define Package/zerotier
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread +kmod-tun +ip +libstdcpp
DEPENDS:=+libpthread +kmod-tun +ip
TITLE:=ZeroTier
URL:=https://www.zerotier.com
SUBMENU:=VPN
Expand All @@ -35,6 +37,9 @@ define Package/zerotier/description
ZeroTier creates a global provider-independent virtual private cloud network.
endef

MAKE_FLAGS += \
LDFLAGS="-static-libgcc -static-libstdc++ -lgcc_s"

define Package/zerotier/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/zerotier-one $(1)/usr/bin/
Expand Down

0 comments on commit 9976ca7

Please sign in to comment.