- Timestamp:
- Feb 21, 2006, 12:15:50 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 12ba0a4
- Parents:
- eec901a
- Location:
- scripts
- Files:
-
- 5 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/funcs/multiarch-funcs.sh
reec901a r23b6afb 51 51 sed -e "s@lib[36][124]@lib@g" -e "s@lib@${libdirname}@g" ` 52 52 53 if [ "${MULTIARCH}" = "Y" ]; then54 export PERL=`which_func perl-${BUILDENV}`55 export PYTHON=`which_func python-${BUILDENV}`56 else57 export PERL=`which_func perl`58 export PYTHON=`which_func python`59 fi60 61 53 } 62 54 … … 156 148 if [ ! -d ${wrapperdir} ]; then mkdir -p ${wrapperdir} ; fi 157 149 158 cat > ${wrapper} <<EOF 159 #!/bin/sh 160 161 # Set to default if BUILDENV not set 162 if [ -z \${BUILDENV} ]; then BUILDENV=${DEFAULTENV} ; fi 163 export BUILDENV 164 exec \${0}-\${BUILDENV} \${@} 150 cat > wrapper.c <<"EOF" 151 /* 152 153 wrapper.c - c wrapper for cross-lfs multiarch handling 154 ------------------------------------------------------ 155 Created By: Ryan Oliver <ryan.oliver@pha.com.au> 20050606 156 157 $LastChangedBy$ 158 $LastChangedDate$ 159 $LastChangedRevision$ 160 $HeadURL$ 161 162 */ 163 164 #include <unistd.h> 165 #include <stdlib.h> 166 #include <errno.h> 167 168 /* TODO: should check for __x86_64__ , __powerpc64__ etc and set accordingly */ 169 #ifndef DEFAULTENV 170 #define DEFAULTENV "64" 171 #endif 172 173 int main(int argc, char **argv) { 174 175 char *filename; 176 char *buildenv; 177 178 if(!(buildenv = getenv("BUILDENV"))) 179 buildenv = DEFAULTENV; 180 181 filename = (char *) malloc(strlen(argv[0]) + strlen(buildenv) + 2); 182 strcpy(filename, argv[0]); 183 strcat(filename, "-"); 184 strcat(filename, buildenv); 185 186 execvp(filename, argv); 187 perror(argv[0]); 188 free(filename); 189 190 } 165 191 EOF 166 192 193 OLD_BUILDENV="${BUILDENV}" 194 BUILDENV="${DEFAULTENV}" 195 setup_multiarch 196 197 ${CC-gcc} ${ARCH_CFLAGS} -DDEFAULTENV=\"${DEFAULTENV}\" \ 198 wrapper.c -o ${wrapper} 167 199 chmod 755 ${wrapper} 200 201 BUILDENV="${OLD_BUILDENV}" 168 202 169 203 } -
scripts/target-scripts/target-gcc.sh
reec901a r23b6afb 194 194 3.4* ) 195 195 apply_patch gcc-3.4.1-fix_configure_for_target_native 196 ;; 197 198 4.* ) 199 # Testing only... set AS_FOR_TARGET and LD_FOR_TARGET so these are used 200 # for feature checks... will have to check for unintended side effects 201 extra_makeopts="AS_FOR_TARGET=${HST_TOOLS}/bin/${TARGET}-as" 202 extra_makeopts="${extra_makeopts} LD_FOR_TARGET=${HST_TOOLS}/bin/${TARGET}-ld" 196 203 ;; 197 204 esac … … 222 229 min_log_init ${BUILDLOGS} && 223 230 make ${PMFLAGS} BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 ${HOST_CFLAGS} -pipe" \ 224 STAGE1_CFLAGS="-O2 ${HOST_CFLAGS} -pipe" all \231 STAGE1_CFLAGS="-O2 ${HOST_CFLAGS} -pipe" ${extra_makeopts} all \ 225 232 >> ${LOGFILE} 2>&1 && 226 233 echo " o Build OK" || barf -
scripts/untested/blfs-scripts/blfs-shared-mime-info.sh
reec901a r23b6afb 11 11 unpack_tarball shared-mime-info-${SHD_MIME_INFO_VER} 12 12 cd ${PKGDIR} 13 14 if [ "${MULTIARCH}" = "Y" ]; then15 export INTLTOOL_PERL="${PERL}"16 fi17 13 18 14 max_log_init shared-mime-info ${SHD_MIME_INFO_VER} "blfs (shared)" ${CONFLOGS} ${LOG} -
scripts/untested/gnome-scripts/gnome-desktop-scripts/gnome-desktop-scrollkeeper.sh
reec901a r23b6afb 25 25 ####### 26 26 27 # Set perl binary to use if multiarch (else intltool component barfs)28 export INTLTOOL_PERL="${PERL}"29 30 27 max_log_init scrollkeeper ${SCROLLKEEPER_VER} "blfs (shared)" ${CONFLOGS} ${LOG} 31 28 CC="${CC-gcc} ${ARCH_CFLAGS}" \ -
scripts/untested/gnome-scripts/gnome-platform-scripts/gnome-platform-glib.sh
reec901a r23b6afb 27 27 fi 28 28 29 # If ${PERL} is set, strip the path from it so PERL_PATH gets set correctly30 if [ ! -z "${PERL}" ]; then31 export PERL=`basename ${PERL}`32 fi33 34 29 max_log_init glib ${GLIB_VER} "blfs (shared)" ${CONFLOGS} ${LOG} 35 30 CC="${CC-gcc} ${ARCH_CFLAGS}" \ -
scripts/untested/gnome-scripts/gnome-platform-scripts/gnome-platform-gnome-mime-data.sh
reec901a r23b6afb 20 20 cd ${PKGDIR} 21 21 22 if [ "${MULTIARCH}" = "Y" ]; then23 export INTLTOOL_PERL="${PERL}"24 fi25 26 22 # TODO: does this use g++ 27 23 max_log_init gnome-mime-data ${GNOME_MIME_DATA_VER} "blfs (shared)" ${CONFLOGS} ${LOG} -
scripts/untested/gnome-scripts/gnome-platform-scripts/gnome-platform-intltool.sh
reec901a r23b6afb 5 5 cd ${SRC} 6 6 LOG=intltool-gnome-platform.log 7 8 set_libdirname9 # Set perl binary to use if multiarch...10 if [ "${MULTIARCH}" = "Y" ]; then11 export PERL="/usr/bin/perl-${BUILDENV}"12 fi13 7 14 8 # override TARBALLS to point at gnome/platform tree
Note:
See TracChangeset
for help on using the changeset viewer.