[Flac-dev] -lm ordering
Christian Weisgerber
naddy at mips.inka.de
Tue Aug 28 08:20:30 PDT 2001
In order to compile flac-1.0 with Compaq C on FreeBSD/alpha, I
needed to move -lm to the end of the libraries, otherwise ccc would
complain about unresolved symbols. Patches below.
The result is nothing less than stunning. On my 21164A/500 box,
"ccc -fast" code is almost twice as fast as "gcc -O -mcpu=ev56",
1:11 vs. 2:03 for encoding a test track with default parameters.
This may also be due to the Compaq math library.
--- src/flac/Makefile.am.orig Tue Aug 28 15:58:11 2001
+++ src/flac/Makefile.am Tue Aug 28 15:58:19 2001
@@ -29,5 +29,4 @@
encode.h \
file.h
-flac_LDFLAGS = -lm
-flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
+flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la -lm
--- src/test_streams/Makefile.am.orig Tue Aug 28 16:00:17 2001
+++ src/test_streams/Makefile.am Tue Aug 28 16:00:28 2001
@@ -20,6 +20,6 @@
noinst_PROGRAMS = test_streams
test_streams_SOURCES = \
main.c
-test_streams_LDFLAGS = -lm
+test_streams_LDADD = -lm
CLEANFILES = $(wildcard *.raw)
--- src/test_unit/Makefile.am.orig Tue Aug 28 16:21:54 2001
+++ src/test_unit/Makefile.am Tue Aug 28 16:22:05 2001
@@ -19,8 +19,7 @@
INCLUDES = -I$(top_srcdir)/src/libFLAC/include
noinst_PROGRAMS = test_unit
-test_unit_LDFLAGS = -lm
-test_unit_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
+test_unit_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la -lm
test_unit_SOURCES = \
bitbuffer.c \
main.c \
--
Christian "naddy" Weisgerber naddy at mips.inka.de
More information about the Flac-dev
mailing list