Ignore:
Timestamp:
2010-07-12T15:06:25+12:00 (14 years ago)
Author:
sjm84
Message:

Greenstone 2 now compiles and installs on 64-bit linux machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/packages/configure

    r22058 r22378  
    140140fi
    141141
     142#Configure and compile 32-bit expat
     143if test -e Makefile ; then
     144  echo make distclean && \
     145  make distclean
     146fi
     147
    142148echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --with-pic --prefix=$PACKAGES/expat --bindir="$bindir" $HOSTTARGETFLAGS $ENVIRONMENT
    143149
     
    151157CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" make install $ENVIRONMENT
    152158
     159echo make distclean && \
     160make distclean
     161
     162if test ! -z "$COMPAT32BITFLAGS" ; then
     163#Configure and compile 64-bit expat
     164  echo ./configure $CACHE_FILE --disable-shared --with-pic --prefix=$PACKAGES/expat --bindir="$bindir" --libdir="$PACKAGES/expat/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
     165
     166  cd "$PACKAGES/expat/expat-1.95.8" && \
     167  ./configure $CACHE_FILE --disable-shared --with-pic --prefix=$PACKAGES/expat --bindir="$bindir" --libdir="$PACKAGES/expat/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
     168
     169  echo make $ENVIRONMENT
     170  make $ENVIRONMENT
     171
     172  echo make install $ENVIRONMENT
     173  make install $ENVIRONMENT
     174fi
     175
     176echo make distclean && \
     177make distclean
    153178
    154179# configure and compile libiconv during configuration stage
     
    163188
    164189# configure
     190cd "$PACKAGES/iconv/libiconv-1.13.1"
     191
     192if test -e Makefile ; then
     193  echo make distclean && \
     194  make distclean
     195fi
     196
    165197echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    166 cd "$PACKAGES/iconv/libiconv-1.13.1" && \
     198
    167199CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    168200
     
    176208
    177209if test ! -z "$COMPAT32BITFLAGS" ; then
    178   echo "Generating native 64-bit version as well"
     210  echo "Generating native 64-bit version of iconv"
    179211  # used in apache web server, for example
    180212
    181   # dist clean
    182   cd "$PACKAGES/iconv/libiconv-1.13.1"
     213  # distclean
    183214  echo make distclean && \
    184215  make distclean
    185216
    186217  # configure
    187   echo ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" --libdir="$PACKAGES/iconv/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
     218  echo ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    188219  ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" --libdir="$PACKAGES/iconv/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
    189220
     
    193224
    194225  # make install
     226  echo make install $ENVIRONMENT
    195227  make install $ENVIRONMENT
    196   make install $ENVIRONMENT
    197 
    198 fi
     228fi
     229
     230echo make distclean && \
     231make distclean
    199232
    200233#./configure $CACHE_FILE --prefix="$PACKAGES/iconv" --disable-shared $HOSTTARGETFLAGS&&
Note: See TracChangeset for help on using the changeset viewer.