296 |
|
|
297 |
|
|
298 |
# Platform-specific options |
# Platform-specific options |
299 |
|
cat >conftest.$$.c << EOF |
300 |
|
#include <stdlib.h> |
301 |
|
#include <signal.h> |
302 |
|
int main(int argc, char **argv) |
303 |
|
{ |
304 |
|
unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 }; |
305 |
|
signal(SIGBUS, exit); |
306 |
|
signal(SIGABRT, exit); |
307 |
|
signal(SIGSEGV, exit); |
308 |
|
if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) { |
309 |
|
return 1; |
310 |
|
} |
311 |
|
return 0; |
312 |
|
} |
313 |
|
EOF |
314 |
|
$cc -o conftest.$$ conftest.$$.c |
315 |
|
need_alignment=yes |
316 |
|
./conftest.$$ && need_alignment=no |
317 |
|
if [ "$need_alignment" = "yes" ]; then |
318 |
|
echo "Architecture needs alignment" |
319 |
|
echo |
320 |
|
cflags="$cflags -DNEED_ALIGNMENT" |
321 |
|
fi |
322 |
|
rm conftest.$$ conftest.$$.c |
323 |
|
|
324 |
# strip leading colon from rpath |
# strip leading colon from rpath |
325 |
rpath=`echo $rpath |sed 's/^://'` |
rpath=`echo $rpath |sed 's/^://'` |