Mark Constable wrote:
gcc -Werror -march=i686 -mtune=generic -O2 -pipe
-std=gnu99 -W -Wall -Wdeclaration-after-statement -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow
-Wbad-function-cast -Wwrite-strings -pipe -o test util.o write_read.o test.o
../lib/.libs/libvorbisenc.a ../lib/.libs/libvorbis.a ../../../src/OGG/.libs/libogg.a -lm
write_read.o: In function `write_vorbis_data_or_die':
write_read.c:(.text+0x6b2): undefined reference to `vorbis_encode_init_vbr'
Thats doesn't make sense!
The function vorbis_encode_init_vbr is in libvorbisenc and libvorbisenc.a
is included in the compile line.
build() {
cd $startdir/src/
bzr get
http://www.mega-nerd.com/Bzr/libsndfile-vorbis/
cd libsndfile-vorbis/
./autogen.sh
make all check || return 1
make DESTDIR=$startdir/pkg install
}
Maybe try splitting out the make to two different stanges:
make
make check
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"It has been discovered that C++ provides a remarkable facility
for concealing the trival details of a program -- such as where
its bugs are." -- David Keppel