# libFLAC - Free Lossless Audio Codec library
-# Copyright (C) 2001,2002,2003 Josh Coalson
+# Copyright (C) 2001,2002,2003,2004 Josh Coalson
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
if FLaC__CPU_IA32
if FLaC__HAS_NASM
ARCH_SUBDIRS = ia32
-libFLAC_la_LIBADD = -lm ia32/libFLAC-asm.la
-else
-libFLAC_la_LIBADD = -lm
+libFLAC_la_LIBADD = ia32/libFLAC-asm.la
+endif
endif
+if FLaC__CPU_PPC
+ARCH_SUBDIRS = ppc
+libFLAC_la_LIBADD = ppc/libFLAC-asm.la
+LOCAL_EXTRA_LDFLAGS = "-Wl,-read_only_relocs,warning"
endif
endif
libFLAC_static.dsp \
libFLAC.m4
-# see 'http://www.gnu.org/software/libtool/manual.html#Versioning' for numbering convention
-libFLAC_la_LDFLAGS = -version-info 5:2:1
+# see 'http://www.gnu.org/software/libtool/manual.html#SEC35' for numbering convention
+libFLAC_la_LDFLAGS = -version-info 6:1:0 -lm $(LOCAL_EXTRA_LDFLAGS)
libFLAC_la_SOURCES = \
bitbuffer.c \
bitmath.c \