From 754200a4d300bdfc27f0ab85705d3380b92be050 Mon Sep 17 00:00:00 2001 From: atmosfear Date: Thu, 17 May 2001 18:20:14 +0000 Subject: [PATCH] Added missing mathlib for linking. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@827 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/Makefile | 4 ++-- mp3lib/test.c | 2 +- mp3lib/test2.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mp3lib/Makefile b/mp3lib/Makefile index 575a0756ba..c206feee09 100644 --- a/mp3lib/Makefile +++ b/mp3lib/Makefile @@ -19,10 +19,10 @@ libMP3.a: .depend $(OBJS) $(AR) r libMP3.a $(OBJS) test1: libMP3.a test.c - $(CC) $(CFLAGS) test.c -o test1 -I.. -L. -lMP3 + $(CC) $(CFLAGS) test.c -o test1 -I.. -L. -lMP3 -lm test2: libMP3.a test2.c - $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 + $(CC) $(CFLAGS) test2.c -o test2 -I.. -L. -lMP3 -lm all: libMP3.a diff --git a/mp3lib/test.c b/mp3lib/test.c index 67bf098c5e..3495da579a 100644 --- a/mp3lib/test.c +++ b/mp3lib/test.c @@ -1,7 +1,7 @@ #define DUMP_PCM -// gcc test.c -I.. -L. -lMP3 -o test -O4 +// gcc test.c -I.. -L. -lMP3 -lm -o test1 -O4 #include #include diff --git a/mp3lib/test2.c b/mp3lib/test2.c index 103b7ce17f..e520ddfc7d 100644 --- a/mp3lib/test2.c +++ b/mp3lib/test2.c @@ -1,5 +1,5 @@ -// gcc test.c -I.. -L. -lMP3 -o test -O4 +// gcc test.c -I.. -L. -lMP3 -lm -o test2 -O4 #include #include