projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-Fixed errors in unzip and libmng for x86_64.
[hvlinux.git]
/
stage3
/
cis-unzip
diff --git
a/stage3/cis-unzip
b/stage3/cis-unzip
index
107b4cb
..
24295b2
100755
(executable)
--- a/
stage3/cis-unzip
+++ b/
stage3/cis-unzip
@@
-8,13
+8,24
@@
source ../sysinfos
source ../functions
source ../packages-list
source ../functions
source ../packages-list
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
# Applying patches (if any)
# Applying patches (if any)
-apply_patches ${1}
+apply_patches ${PACKAGE}
+
+case "${HVL_TARGET}" in
+ "x86_64")
+ UNZIP_TARGET=linux_noasm
+ ;;
+ *)
+ UNZIP_TARGET=linux
+esac
-cd ${LFS_TMP}/${
1
}
-make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64
linux
+cd ${LFS_TMP}/${
PACKAGE
}
+make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64
${UNZIP_TARGET}
make prefix=/usr install
ldconfig
make prefix=/usr install
ldconfig
-# Return last error
exit $?
exit $?