aboutsummaryrefslogtreecommitdiff
path: root/ipv6
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-04-19 18:28:14 -0700
committerJosef Schlehofer <pepe.schlehofer@gmail.com>2021-04-20 20:10:56 +0200
commit6123f3b48e3bd89ee7731ba442c21367558e372f (patch)
tree3bfef94fc42a2b3fb3257da043b84ed03f7e54c7 /ipv6
parentc7aac7c3ff58d715396e6938903a6a72acc6f8b3 (diff)
generate-ipv6-address: fix PIC compilation
This is a single C file. Don't bother using the Makefile. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'ipv6')
-rw-r--r--ipv6/generate-ipv6-address/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipv6/generate-ipv6-address/Makefile b/ipv6/generate-ipv6-address/Makefile
index 0d696d1ad..701b3c78d 100644
--- a/ipv6/generate-ipv6-address/Makefile
+++ b/ipv6/generate-ipv6-address/Makefile
@@ -7,7 +7,6 @@ PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=generate-ipv6-address-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
PKG_HASH:=e1356d245d5f891fa39b796a8a2deefdaa89f08130dc97a378738ca5ed9a20fa
-PKG_INSTALL:=1
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
PKG_LICENSE:=MIT
@@ -27,12 +26,13 @@ define Package/generate-ipv6-address/description
address (an Ethernet hardware address) or a randomly drawn host number.
endef
-MAKE_FLAGS += \
- PREFIX="$(PKG_INSTALL_DIR)/usr"
+define Build/Compile
+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(PKG_BUILD_DIR)/generate-ipv6-address.c -o $(PKG_BUILD_DIR)/generate-ipv6-address
+endef
define Package/generate-ipv6-address/install
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/generate-ipv6-address $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/generate-ipv6-address $(1)/usr/bin/
endef
$(eval $(call BuildPackage,generate-ipv6-address))