equal
deleted
inserted
replaced
244 fi |
244 fi |
245 |
245 |
246 echo "Host OS: ${SUB_OS_NAME}" |
246 echo "Host OS: ${SUB_OS_NAME}" |
247 echo "Host arch: ${SUB_ARCH_NAME}" |
247 echo "Host arch: ${SUB_ARCH_NAME}" |
248 |
248 |
249 if [ "$SUB_ARCH_NAME" = "x86_64" -a "$CC" = "gcc" ]; then |
|
250 # Only if we are on x86_64 and using gcc |
|
251 # For shared library generation, it needs this |
|
252 SUB_PROG_CFLAGS=-fPIC |
|
253 fi |
|
254 |
|
255 if [ "$SUB_ARCH_NAME" = "ppc" -o "$SUB_ARCH_NAME" = "powerpc" ]; then |
249 if [ "$SUB_ARCH_NAME" = "ppc" -o "$SUB_ARCH_NAME" = "powerpc" ]; then |
256 # PowerPC uses big endian format |
250 # PowerPC uses big endian format |
257 CANOPEN_BIG_ENDIAN=1 |
251 CANOPEN_BIG_ENDIAN=1 |
258 fi |
252 fi |
259 |
253 |
513 echo "Please supply the wanted compiler" |
507 echo "Please supply the wanted compiler" |
514 exit -1 |
508 exit -1 |
515 fi |
509 fi |
516 |
510 |
517 echo "Using ${CC} as a C compiler" |
511 echo "Using ${CC} as a C compiler" |
|
512 |
|
513 if [ "$SUB_ARCH_NAME" = "x86_64" -a "$CC" = "gcc" ]; then |
|
514 # Only if we are on x86_64 and using gcc |
|
515 # For shared library generation, it needs this |
|
516 SUB_PROG_CFLAGS=-fPIC |
|
517 fi |
518 |
518 |
519 if [ "$BINUTILS_PREFIX" = "" ]; then |
519 if [ "$BINUTILS_PREFIX" = "" ]; then |
520 SUB_BINUTILS_PREFIX=`echo "$CC" | sed 's/gcc$//'` |
520 SUB_BINUTILS_PREFIX=`echo "$CC" | sed 's/gcc$//'` |
521 else |
521 else |
522 SUB_BINUTILS_PREFIX=$BINUTILS_PREFIX |
522 SUB_BINUTILS_PREFIX=$BINUTILS_PREFIX |