Ignore:
Timestamp:
2010-01-06T17:30:17+13:00 (14 years ago)
Author:
davidb
Message:

Update to use of -m32, which is activated when compiling on a 64-bit machine. The requirement for needing to using -m32 is mg and mg++ (which currently only work with 32-bit sized data-types). If both --disable-mg and --disable-mgpp are specified this means that we don't need to use -m32. Configure files updated to detect this and 'cancel' the -m32 flag.

Location:
main/trunk/greenstone2/common-src/packages
Files:
3 edited

Legend:

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

    r21419 r21432  
    158158
    159159# configure
    160 echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
     160echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    161161cd "$PACKAGES/iconv/libiconv-1.13.1" && \
    162 CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --disable-shared --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
     162CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" $HOSTTARGETFLAGS $ENVIRONMENT
    163163
    164164# make
     
    169169echo CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" make install $HOSTTARGETFLAGS $ENVIRONMENT
    170170CFLAGS="$CFLAGS $COMPAT32BITFLAGS" CXXFLAGS="$CXXFLAGS $COMPAT32BITFLAGS" LDFLAGS="$LDFLAGS $COMPAT32BITFLAGS" make install $HOSTTARGETFLAGS $ENVIRONMENT
     171
     172if test ! -z "$COMPAT32BITFLAGS" ; then
     173  echo "Generating native 64-bit version as well"
     174  # used in apache web server, for example
     175
     176  # dist clean
     177  cd "$PACKAGES/iconv/libiconv-1.13.1"
     178  echo make distclean && \
     179  make distclean
     180
     181  # configure
     182  echo ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" --libdir="$PACKAGES/iconv/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
     183  ./configure $CACHE_FILE --enable-shared --enable-static --prefix="$PACKAGES/iconv" --libdir="$PACKAGES/iconv/lib64" $HOSTTARGETFLAGS $ENVIRONMENT
     184
     185  # make
     186  echo make $HOSTTARGETFLAGS $ENVIRONMENT
     187  make $HOSTTARGETFLAGS $ENVIRONMENT
     188
     189  # make install
     190  make install $HOSTTARGETFLAGS $ENVIRONMENT
     191  make install $HOSTTARGETFLAGS $ENVIRONMENT
     192
     193fi
    171194
    172195#./configure $CACHE_FILE --prefix="$PACKAGES/iconv" --disable-shared $HOSTTARGETFLAGS&&
  • main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/configure

    r18345 r21432  
    75207520
    75217521
    7522 echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
    7523 echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
    7524 arch_64bit=no
    7525 case "$host_cpu" in
    7526 x86_64) arch_64bit=yes ;;
    7527 esac
    7528 
    7529 if test "$arch_64bit" = yes; then
    7530   echo "$as_me:$LINENO: result: yes" >&5
    7531 echo "${ECHO_T}yes" >&6
    7532   if test -z "$COMPAT32BITFLAGS" ; then
    7533     COMPAT32BITFLAGS="-m32"
    7534   fi
    7535 else
    7536   echo "$as_me:$LINENO: result: no" >&5
    7537 echo "${ECHO_T}no" >&6
    7538   if test -z "$COMPAT32BITFLAGS" ; then
    7539     COMPAT32BITFLAGS=
    7540   fi
    7541 fi
    7542 export COMPAT32BITFLAGS
     7522
     7523
     7524cat >>confdefs.h <<_ACEOF
     7525#define COMPAT32BITFLAGS $COMPAT32BITFLAGS
     7526_ACEOF
     7527
    75437528
    75447529
  • main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/configure.in

    r18345 r21432  
    1616dnl AC_C_BIGENDIAN([])
    1717
    18 AC_MSG_CHECKING(to see if architecture is 64-bit)
    19 arch_64bit=no
    20 case "$host_cpu" in
    21 x86_64) arch_64bit=yes ;;
    22 esac
     18dnl AC_MSG_CHECKING(to see if architecture is 64-bit)
     19dnl arch_64bit=no
     20dnl case "$host_cpu" in
     21dnl x86_64) arch_64bit=yes ;;
     22dnl esac
     23dnl
     24dnl if test "$arch_64bit" = yes; then
     25dnl   AC_MSG_RESULT(yes)
     26dnl   if test -z "$COMPAT32BITFLAGS" ; then
     27dnl     COMPAT32BITFLAGS="-m32"
     28dnl     LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
     29dnl   fi
     30dnl else
     31dnl   AC_MSG_RESULT(no)
     32dnl   if test -z "$COMPAT32BITFLAGS" ; then
     33dnl     COMPAT32BITFLAGS=
     34dnl     LIBTOOLCOMPAT32BITFLAGS=
     35dnl   fi
     36dnl fi
     37dnl export COMPAT32BITFLAGS
     38dnl AC_SUBST(COMPAT32BITFLAGS)
    2339
    24 if test "$arch_64bit" = yes; then
    25   AC_MSG_RESULT(yes)
    26   if test -z "$COMPAT32BITFLAGS" ; then
    27     COMPAT32BITFLAGS="-m32"
    28     LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32"
    29   fi
    30 else
    31   AC_MSG_RESULT(no)
    32   if test -z "$COMPAT32BITFLAGS" ; then
    33     COMPAT32BITFLAGS=
    34     LIBTOOLCOMPAT32BITFLAGS=
    35   fi
    36 fi
    37 export COMPAT32BITFLAGS
     40
     41AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS)
    3842AC_SUBST(COMPAT32BITFLAGS)
    3943
Note: See TracChangeset for help on using the changeset viewer.