--- a/template/Makefile
+++ b/template/Makefile
@@ -59,7 +59,7 @@
 RMF = /bin/rm -f
 RMFR = $(RMF)r
 RMPKG = $(RMFR) pkg/
-MKPKGFILE = cd pkg && /bin/tar acf ../$@ *
+MKPKGFILE = cd pkg && /bin/tar acf ../$@ --dereference --hard-dereference *
 EXTRACTPKG = /bin/tar axf $(PKGFILE)
 TOUCH = /bin/touch $@
 RMDIR = /bin/rmdir