1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #! /bin/sh
- am_create_testdir=empty
- required=gcc
- . test-init.sh
- cp "$am_docdir"/amhello-1.0.tar.gz . \
- || fatal_ "cannot get amhello tarball"
- gzip -dc amhello-1.0.tar.gz | tar xf -
- cd amhello-1.0
- mkdir debug optim
- cd debug
- ../configure CFLAGS='-g -O0'
- $MAKE
- ls -l . src
- cd ../optim
- ../configure CFLAGS='-O3 -fomit-frame-pointer'
- $MAKE
- ls -l . src
- cd ..
- for exeext in '' .exe :; do
- test -f optim/src/hello$exeext && break
- test "$exeext" = : && fatal_ "cannot determine extension of executables"
- done
- cmp optim/src/hello$exeext debug/src/hello$exeext && exit 1
- :
|