[tools] padjffs2: link statically
[openwrt-working-2016/.git] / tools / padjffs2 / Makefile
index a057ddddcaf4653440ff9bb7a55e9d73b50c1ff1..3f033c0c2b8c488455c70a996d55235da8f6ba1a 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011 OpenWrt.org
+# Copyright (C) 2011-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -18,11 +18,11 @@ define Host/Prepare
        find $(HOST_BUILD_DIR) -name .svn | $(XARGS) rm -rf
 endef
 
-define Host/Configure
+define Host/Compile
+       $(MAKE) -C $(HOST_BUILD_DIR) LDFLAGS="-static"
 endef
 
-define Host/Compile
-       $(MAKE) CC="$(HOSTCC)" -C $(HOST_BUILD_DIR)
+define Host/Configure
 endef
 
 define Host/Install