-Cleaned-up name of ipkg functions in package definition files.
[hvlinux.git] / stage0 / pkg / eglibc
index 4d98d1b..fe9dfe2 100644 (file)
@@ -1,17 +1,24 @@
 #!/bin/bash
 
-hvpatch()
-{
-    case "${HVL_TARGET}" in
-        "x86" | "x86_64")
-            # Manually apply patch
-            #apply_patch ${1}-rpath.patch ${1}
-            ;;
-    esac
-}
+BUILD_CC="gcc"
+CC="${CLFS_TARGET}-gcc ${CLFS_BUILDFLAGS}"
+AR="${CLFS_TARGET}-ar"
+RANLIB="${CLFS_TARGET}-ranlib"
+
+CONFIGURE_OPTS="\
+    --prefix=/tools \
+    --host=${CLFS_TARGET} \
+    --build=${CLFS_HOST} \
+    --disable-profile \
+    --enable-add-ons \
+    --with-tls \
+    --enable-kernel=$(get_pkg_ver ${KERNEL}) \
+    --with-__thread \
+    --with-binutils=/cross-tools/bin \
+    --with-headers=/tools/include"
 
 # For Glibc to support NPTL:
-config_cache()
+hvconfig_cache()
 {
 cat > ${LFS_TMP}/${PACKAGE}-build/config.cache << EOF
 libc_cv_forced_unwind=yes
@@ -21,7 +28,7 @@ libc_cv_ssp=no
 EOF
 }
 
-configure_pre()
+hvconfig_pre()
 {
     case "${HVL_TARGET}" in
         "x86")
@@ -38,6 +45,4 @@ configure_pre()
 
     # Disable linking to libgcc_eh:
     sed -e 's/-lgcc_eh//g' -i Makeconfig
-
-    DEFAULT_CONFIGURE_PREFIX=/tools
 }