X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/48cf70b4451c49fbd282e683746e7350468c377d..56add57f296e5b9e8e9ec4a739f872109f20077c:/package/nfs-server/Makefile diff --git a/package/nfs-server/Makefile b/package/nfs-server/Makefile index 1f72ddfca..32bad9b82 100644 --- a/package/nfs-server/Makefile +++ b/package/nfs-server/Makefile @@ -22,6 +22,8 @@ $(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ @@ -43,17 +45,17 @@ $(PKG_BUILD_DIR)/.configured: $(DISABLE_LARGEFILE) \ $(DISABLE_NLS) \ ); - touch $(PKG_BUILD_DIR)/.configured + touch $@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) - touch $(PKG_BUILD_DIR)/.built + touch $@ $(IPKG_NFS_SERVER): install -d -m0755 $(IDIR_NFS_SERVER)/etc install -m0644 ./files/nfsd.exports $(IDIR_NFS_SERVER)/etc/exports install -d -m0755 $(IDIR_NFS_SERVER)/etc/init.d - install -m0644 ./files/nfsd.init $(IDIR_NFS_SERVER)/etc/init.d/S60nfsd + install -m0755 ./files/nfsd.init $(IDIR_NFS_SERVER)/etc/init.d/S60nfsd install -d -m0755 $(IDIR_NFS_SERVER)/usr/sbin install -m0755 $(PKG_BUILD_DIR)/rpc.* $(IDIR_NFS_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_NFS_SERVER)