Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 650842 | Differences between
and this patch

Collapse All | Expand All

(-)i2p-0.9.33/core/c/jcpuid/build.sh (-16 / +17 lines)
Lines 57-76 Link Here
57
57
58
# Debian builds are presumed to be native, we don't need the -mxx flag unless cross-compile,
58
# Debian builds are presumed to be native, we don't need the -mxx flag unless cross-compile,
59
# and this breaks the x32 build
59
# and this breaks the x32 build
60
if [ -z "$DEBIANVERSION" ] ; then
60
#if [ -z "$DEBIANVERSION" ] ; then
61
    if [ $BITS -eq 32 ]; then
61
#    if [ $BITS -eq 32 ]; then
62
      export ABI=32
62
#      export ABI=32
63
      export CFLAGS="-m32 -mtune=i686 -march=i686"
63
#      export CFLAGS="-m32 -mtune=i686 -march=i686"
64
      export LDFLAGS="-m32"
64
#      export LDFLAGS="-m32"
65
    elif [ $BITS -eq 64 ]; then
65
#    elif [ $BITS -eq 64 ]; then
66
      export ABI=64
66
#      export ABI=64
67
      export CFLAGS="-m64 -mtune=generic"
67
#      export CFLAGS="-m64 -mtune=generic"
68
      export LDFLAGS="-m64"
68
#      export LDFLAGS="-m64"
69
    else
69
#    else
70
      printf "BITS value \"$BITS\" not valid, please select 32 or 64\n" >&2
70
#      printf "BITS value \"$BITS\" not valid, please select 32 or 64\n" >&2
71
      exit 1
71
#      exit 1
72
    fi
72
#    fi
73
fi
73
#fi
74
74
75
[ -z $ARCH ] && case `uname -m` in
75
[ -z $ARCH ] && case `uname -m` in
76
    x86_64*|amd64)
76
    x86_64*|amd64)
Lines 155-160 Link Here
155
155
156
echo "Compiling C code..."
156
echo "Compiling C code..."
157
rm -f ${LIBFILE}
157
rm -f ${LIBFILE}
158
${CC_PREFIX}${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} src/*.c -o ${LIBFILE} || (echo "Failed to compile ${LIBFILE}"; exit 1)
158
echo ${CC_PREFIX}${CC} ${COMPILEFLAGS} ${CPPFLAGS} ${CFLAGS} ${LINKFLAGS} ${LDFLAGS} ${INCLUDES} src/*.c -o ${LIBFILE}
159
${CC_PREFIX}strip ${LIBFILE} || (echo "Failed to strip ${LIBFILE}" ; exit 1)
159
${CC_PREFIX}${CC} ${COMPILEFLAGS} ${CPPFLAGS} ${CFLAGS} ${LINKFLAGS} ${LDFLAGS} ${INCLUDES} src/*.c -o ${LIBFILE} || (echo "Failed to compile ${LIBFILE}"; exit 1)
160
#${CC_PREFIX}strip ${LIBFILE} || (echo "Failed to strip ${LIBFILE}" ; exit 1)
160
echo Built `dirname $0`/${LIBFILE}
161
echo Built `dirname $0`/${LIBFILE}

Return to bug 650842