endef
define Build/Prepare/LFS
- cat ./files/config-lfs.h >> $(PKG_BUILD_DIR)/source/include/config.h
endef
define Build/Prepare
$(call Build/Prepare/Default)
-$(call Build/Prepare/LFS)
+endef
+
+define Build/Configure
+ [ -f "$(PKG_BUILD_DIR)/source/include/config.h.save" ] || \
+ $(CP) $(PKG_BUILD_DIR)/source/include/config.h \
+ $(PKG_BUILD_DIR)/source/include/config.h.save
+ cat \
+ $(PKG_BUILD_DIR)/source/include/config.h.save \
+ ./files/config-lfs.h >> $(PKG_BUILD_DIR)/source/include/config.h
+ $(Build/Configure/Default)
endef
define Build/Compile
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
$(MAKE) -C $(PKG_BUILD_DIR)/source \
+ $(TARGET_CONFIGURE_OPTS) \
all bin/smbpasswd
endef
--- /dev/null
+--- a/source/include/config.h
++++ b/source/include/config.h
+@@ -986,13 +986,13 @@
+ /* #undef HAVE_ROOT */
+
+ /* Define to 1 if you have the <rpcsvc/nis.h> header file. */
+-#define HAVE_RPCSVC_NIS_H 1
++/* #define HAVE_RPCSVC_NIS_H 1 */
+
+ /* Define to 1 if you have the <rpcsvc/ypclnt.h> header file. */
+-#define HAVE_RPCSVC_YPCLNT_H 1
++/* #define HAVE_RPCSVC_YPCLNT_H 1 */
+
+ /* Define to 1 if you have the <rpcsvc/yp_prot.h> header file. */
+-#define HAVE_RPCSVC_YP_PROT_H 1
++/* #define HAVE_RPCSVC_YP_PROT_H 1 */
+
+ /* Whether there is a conflicting AUTH_ERROR define in rpc/rpc.h */
+ /* #undef HAVE_RPC_AUTH_ERROR_CONFLICT */
+@@ -1001,7 +1001,7 @@
+ /* #undef HAVE_RPC_NETTYPE_H */
+
+ /* Define to 1 if you have the <rpc/rpc.h> header file. */
+-#define HAVE_RPC_RPC_H 1
++/* #define HAVE_RPC_RPC_H 1 */
+
+ /* Whether mkstemp is secure */
+ #define HAVE_SECURE_MKSTEMP 1
--- /dev/null
+--- a/source/include/config.h
++++ b/source/include/config.h
+@@ -1848,8 +1848,7 @@
+ #define SIZEOF_LONG 4
+
+ /* The size of the 'off_t' type */
+-/* AR7 #define SIZEOF_OFF_T 8 */
+-#define SIZEOF_OFF_T 4 /* AR7 */
++/* #define SIZEOF_OFF_T 8 */
+
+ /* The size of a `short', as computed by sizeof. */
+ #define SIZEOF_SHORT 2